Naming stuff is hard, but more fun than cache invalidation. implicit class BooleanExt(val bool: Boolean) extends AnyVal { def ergo[T](t: T): Option[T] = if(bool) Some(t) else None } if(me.thinks) Some(me) else None or, me.thinks.ergo(me)
-
-
Cool .. I think scalaz follows this convention of smart constructor style naming for such extensions ..
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.