open suspend fun ensure(value: Boolean, orLeft: () -> E)
Content copied to clipboard
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 an Either.Left.