Creates an EitherTask that wraps choice
into a function that will be evaluated lazily when the
EitherTask needs to make its choice.
Creates an EitherTask that wraps choice
into a function that will be evaluated lazily when the
EitherTask needs to make its choice.
the left task.
the right task.
an expression that returns either Left or Right when evaluated
Creates an EitherTask that wraps choice
into a function that will be lazily evaluated when the
EitherTask needs to make its choice.
Creates an EitherTask that wraps choice
into a function that will be lazily evaluated when the
EitherTask needs to make its choice. If goLeft
evaluates to true the Left
task will
be returned, else the Right
task.
the left task.
the right task.
an expression that returns a Boolean, with true indicating Left and false indicating Right