Very tricky/subtle Scala behavior when a Set is an intermediate in a series of flatMaps/for-comprehension: https://gist.github.com/ryanlecompte/5497801 …
@larsr_h @jedws @ryanlecompte @greenrd In that example, x == y, but f(x) != f(y). So, f isn't a function.
-
-
@tixxit I think@S11001001 and@puffnfresh might have an opinion here. -
@larsr_h@S11001001 well@tixxit is very convincing. Scala's Set means you have to be careful with equality - so Functor when that is done. - 5 more replies
New conversation -
-
-
@tixxit what are you taking f to be? /cc@larsr_h@jedws@ryanlecompte@greenrd -
@purefn@larsr_h@jedws@ryanlecompte@greenrd Sorry, 140 chars and all that. The f was _.toA or _.toB, the one w/ better equality. - 1 more reply
New conversation -
-
-
@tixxit@jedws@ryanlecompte@greenrd Good point.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@tixxit@larsr_h@jedws@ryanlecompte It depends if we interpret == as equality or equivalence; if equivalence, Scala's Set is really SetoidThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.