TribotEitherEffectDefault

class TribotEitherEffectDefault<E, A>(control: DelimitedScope<Either<E, A>>, defaultBoolBind: E) : TribotEitherEffect<E, A>

Constructors

Link copied to clipboard
constructor(control: DelimitedScope<Either<E, A>>, defaultBoolBind: E)

Functions

Link copied to clipboard
open suspend fun <B> Either<E, B>.bind(): B
open suspend fun <B> Validated<E, B>.bind(): B

suspend fun Boolean.bind()

Binds this to the scope by shifting the Left value (defaultBoolBind) if this is false, causing the comprehension to short circuit. If this is true, the execution will proceed.

Link copied to clipboard
open suspend fun Boolean.bindOrElse(defaultLeft: E)

Binds this to the scope by shifting the Left value (defaultLeft) if this is false, causing the comprehension to short circuit. If this is true, the execution will proceed.

Link copied to clipboard
open override fun control(): DelimitedScope<Either<E, A>>