Selective.Core_over_functor_via_select
module Functor : Preface_specs.Functor.WITH_MAP
module Req : Preface_specs.Selective.WITH_PURE_AND_SELECT with type 'a t = 'a Functor.t
type 'a t = 'a Req.t
The type held by the Selective
.
inline
include Preface_specs.Indexed_selective.CORE with type ('a, _) t := 'a t
select e f
apply f
if e
is Left
. It allow to skip effect using Right
.
branch
is like select
. It chooses between two effects.
include Preface_specs.Indexed_applicative.WITH_PURE
with type ('a, 'index) t := 'a t
include Preface_specs.Indexed_applicative.WITH_PURE
with type ('a, 'index) t := 'a t
include Preface_specs.Indexed_apply.WITH_MAP_AND_PRODUCT
with type ('a, 'index) t := 'a t
include Preface_specs.Indexed_functor.WITH_MAP with type ('a, 'index) t := 'a t
include Preface_specs.Indexed_applicative.WITH_PURE
with type ('a, 'index) t := 'a t
val pure : 'a -> 'a t
Lift a value from 'a
into a new t
.