There now exists a filter method on the scalaz Either (\/) that is sensible. No more piss-fiddling about with broken scala.Either! #scala
@seanparsons a proper #scala Either.filter(p) = _.flatMap(a => if(p(a)) Right(a) else Left(Monoid.zero)) // got tired of the ML nonsense.
-
-
@dibblego Nice, I like that.Thanks. 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.