EnsureEitherEffectExtension<L> extension

Provide ensure extension on EitherEffect.

on

Methods

ensure(bool value, L orLeft()) → void
Ensure check if the value is true, and if it is it allows the Either.binding(...) to continue. In case it is false, then it short-circuits the binding and returns the provided value by orLeft inside a Left.