Alias for >>
.
Alias for >>
.
Where >>
is often associated with Monads, *>
is often associated with Applicatives.
Sequence actions, discarding the value of the second argument.
Sequence a callback to run before this, discarding any value produced by it.
Sequence a callback to run after this, discarding any value produced by this.
Alias for flatMap
.
Alias for flatMap
.
Discard the value produced by this callback.
Alias for orElse
.
Alias for orElse
.
Alias for map
.
Alias for map
.
Callback that can short-circuit along the way when conditions you specify, aren't met.
Especially useful for event handlers such as key handlers, drag-and-drop handlers, etc, where you check a condition, perform an effect, check another condition, perform another effect, etc.
This is meant to be lightweight, and be immediately useful without the typical pain of imports, implicit conversions and extension methods then normally accompany monad transforms in Scala.
For a more generic (i.e. beyond Option) or comprehensive monad transformer use Scalaz or similar.