-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
_.reduceRight doesn't pass the correct arguments to iterator
when iterating an object.
#729
Comments
Thanks. As right folds don't have a defined order for objects, I'm just passing them straight through as a left fold. |
No way! You can do this by getting the |
Alright. |
@jdalton: |
@michaelficarra that's usually true if you do things like |
@jdalton: But |
@michaelficarra |
This quote indicates to me that you are missing my point. What I'm trying to say is that no consistent ordering is required. So not just "choose any ordering you want", but "every time you do a |
No I get your point. I'm letting you know that there is more than a reasonable assumption here, based on basic method contracts, and implementation history. Even if an implementation is produced that generates a different order each iteration the contract of being the reverse of |
Okay, so if the ordering is consistently determined, |
_.reduceRight
doesn't pass the correct arguments toiterator
when iterating an object.For a test test.js#L1205-1219.
The text was updated successfully, but these errors were encountered: