-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 section about Enumerable#lazy
#938
base: master
Are you sure you want to change the base?
Conversation
806054e
to
cd1789d
Compare
@@ -4950,6 +4950,28 @@ LOREM | |||
"when an unknown printer took a galley of type and scrambled it to make a type specimen book." | |||
---- | |||
|
|||
== Enumerable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to check if something else can't be moved under this section as well, as it's kind of weird to have a section with a single entry in it.
README.adoc
Outdated
@@ -4950,6 +4950,28 @@ LOREM | |||
"when an unknown printer took a galley of type and scrambled it to make a type specimen book." | |||
---- | |||
|
|||
== Enumerable | |||
|
|||
=== lazy [[lazy]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use a more descriptive heading here - something like Leverage lazy to optimize memory usage
or whatever.
SIZE = 10 | ||
MAX = 10_000_000 | ||
|
||
# bad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might also want to mention that this will instantiate a huge collection first, so it's clearer what the problem and value proposition is.
e86c786
to
214df9c
Compare
214df9c
to
bcc9ef6
Compare
No description provided.