-
Notifications
You must be signed in to change notification settings - Fork 75
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
Generate #11
Comments
I definitely prefer the newer style and I like the 2nd |
There's a lot more clarity with the second example and much more succintness with the first. I personally prefer the succintness. |
I might suggest a style that fits more closely e.g. with how Enumerators behave: Observable.generate(0, RX::TestScheduler.new)
.iterate { |x| x } # Identity as iterator could be the default
.while { |x| x <= 3 }
.select { |x| x + 1 } |
I prefer that last one. Giving a fluid interface to the whole thing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should we switch from using Procs ala this for Observable::generate?:
to this style?
The text was updated successfully, but these errors were encountered: