Module Indexed_selective.Select_from_monad

Parameters

Signature

type ('a, 'index) t = ('a, 'index) Monad.t

The type held by the Indexed Selective.

val select : (('a, 'b) Stdlib.Either.t, 'index) t -> ('a -> 'b, 'index) t -> ('b, 'index) t

select e f apply f if e is Left. It allow to skip effect using Right.