Very tricky/subtle Scala behavior when a Set is an intermediate in a series of flatMaps/for-comprehension: https://gist.github.com/ryanlecompte/5497801 …
@jedws @ryanlecompte @greenrd It doesn't? Do you have a counter example (assuming standard == based equality)?
-
-
@larsr_h@jedws@ryanlecompte@greenrd In that example, x == y, but f(x) != f(y). So, f isn't a function. - 7 more replies
New conversation -
-
@jedws@ryanlecompte@greenrd I understand the issue in Haskell, since you need at least an Eq, but all Scala types have == /cc@larsr_h -
@tixxit@jedws@ryanlecompte@greenrd@larsr_h it's valid functor in subcategory of Haskell. Heterogeneous flatMaps are unprincipled though!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.