-
Notifications
You must be signed in to change notification settings - Fork 268
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
Lazy(object).length() ? #56
Comments
For parity with underscore this would be |
Thannks akre54, Allright, so we can have I've notcied there is
and not sure what this is and how to use, also. |
OK, I just added Currently what I'm thinking is that As for your question about var sequence = Lazy.generate(Math.random, 10); In the above example, var sequence = Lazy.generate(Math.random); In this case, sequence.take(10).toArray(); Alternately, a generated sequence could go on forever and let you just keep iterating asynchronously. This is how the prime number generator example works. |
OK, this is now available in 0.3.1: http://danieltao.com/lazy.js/docs/#Sequence-size |
Thank you dtao. |
To obtain object keys length with lazy.js, I do
However, I want to write simply
Does this make sense? or any philosophy we should not have this?
Thx
The text was updated successfully, but these errors were encountered: