Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Enumerator::Lazy#eager since Ruby 2.7 #2271

Merged
merged 1 commit into from
Jun 2, 2020
Merged

Add Enumerator::Lazy#eager since Ruby 2.7 #2271

merged 1 commit into from
Jun 2, 2020

Conversation

pocke
Copy link
Member

@pocke pocke commented May 24, 2020

#2071

Ruby 2.7 から追加された Enumerator::Lazy#eager のドキュメントを追加します。

RDoc: https://docs.ruby-lang.org/en/2.7.0/Enumerator/Lazy.html#method-i-eager

RDocにサンプルコードはなかったのと、NEWSにあったサンプルコードはしっくりこなかったので、適当に書きました。

  • Enumerator::Lazy である意味があること
  • eagerしてただの Enumerator になったことが分かりやすいこと

を考えて書いています。

@znz znz merged commit 92b3c62 into rurema:master Jun 2, 2020
@pocke pocke deleted the eager branch June 2, 2020 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants