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 minimal support for lazy evaluation to chaining syntax #274

Closed
jdalton opened this issue May 18, 2013 · 9 comments
Closed

Add minimal support for lazy evaluation to chaining syntax #274

jdalton opened this issue May 18, 2013 · 9 comments
Labels

Comments

@jdalton
Copy link
Member

@jdalton jdalton commented May 18, 2013

Project's like Lazy.js prove that lazy evaluation can be implemented in a way that generally performs well. For a future release I'd like to bake-in limited support for this in some of our chained methods.

@jdalton jdalton added the stretch goal label May 7, 2014
@jdalton jdalton changed the title v3.0: Add lazy evaluation to chaining syntax Add lazy evaluation to chaining syntax May 7, 2014
@jdalton jdalton changed the title Add lazy evaluation to chaining syntax Add minimal support for lazy evaluation to chaining syntax May 7, 2014
@jdalton jdalton added the low priority label May 7, 2014
@jdalton jdalton added the help wanted label Jun 1, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 6, 2014
@FilipZawada
Copy link
Contributor

@FilipZawada FilipZawada commented Aug 21, 2014

PR: #678

As requested, I've implemented: map, filter, reverse, drop, dropWhile, dropRight, dropRightWhile, take, takeWhile, takeRight, takeRightWhile, first, last, initial, rest, value.

All seems to work quite fast, results vary between 50% - 10% faster than Lazy.js - depends on use case and on Chrome mood (I suspect "optimized too many times").

@jdalton
Copy link
Member Author

@jdalton jdalton commented Aug 22, 2014

Wahoo!

@ali-bugdayci
Copy link

@ali-bugdayci ali-bugdayci commented Aug 22, 2014

great job 👍

FilipZawada added a commit to FilipZawada/lodash that referenced this issue Aug 26, 2014
@jdalton
Copy link
Member Author

@jdalton jdalton commented Oct 2, 2014

Closed by 461b294.

@stken2050
Copy link

@stken2050 stken2050 commented Nov 19, 2014

Great. Just from curiosity, is there any way to have an infinite sequence like lazy.js?
Such as Natural numbers, Fibonacci numbers, from such as iterate or generatethen lazy take?

@bnjmnt4n
Copy link
Member

@bnjmnt4n bnjmnt4n commented Nov 19, 2014

@kenokabe

is there any way to have an infinite sequence like lazy.js?

Not as of yet.

@cyrilchapon
Copy link

@cyrilchapon cyrilchapon commented Oct 18, 2016

Where can we find a list of which methods are supported ?

@jdalton
Copy link
Member Author

@jdalton jdalton commented Oct 18, 2016

@cyrilchapon See the _ docs.

@lock
Copy link

@lock lock bot commented Jan 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.