Folds Either into Effect, by returning B or a shift with R.
Folds Validated into Effect, by returning B or a shift with R.
Runs the EagerEffect to finish, returning B or shift in case of R, bridging eager computations into suspending.
Runs the Effect to finish, returning B or shift in case of R.
Folds Option into Effect, by returning B or a transforming None into R and shifting the result.
Folds Result into Effect, by returning B or a transforming Throwable into R and shifting the result.
ensure that condition is true, if it's false it will shift with the provided value R. Monadic version of kotlin.require.
true
false
shift
Short-circuit the Effect computation with value R.