You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual behaviour of fromListWith surprised me, given the general "left-biased" feeling of the library.
I think I was expecting that these be equivalent
but they are not. Perhaps add a warning in the documentation of fromListWith? Currently, you have to parse the example to infer the semantics.
The text was updated successfully, but these errors were encountered:
jwaldmann
changed the title
"implementation is left-biased" - but fromList is not
"implementation is left-biased" - but fromList(With) is not
Sep 4, 2016
Yes, this trips me up too. The idea is that it does a left fold with
insert, which indeed is unexpected. Feel free to open a PR, or I'll try to
fix it myself.
The actual behaviour of fromList surprised me, given the general
"left-biased" feeling of the library.
I think I was expecting that these be equivalent
The actual behaviour of
fromListWith
surprised me, given the general "left-biased" feeling of the library.I think I was expecting that these be equivalent
but they are not. Perhaps add a warning in the documentation of
fromListWith
? Currently, you have to parse the example to infer the semantics.The text was updated successfully, but these errors were encountered: