Module type Indexed_applicative.WITH_PURE_AND_APPLY

Minimal interface using apply.

type ('a, 'index) t

The type held by the Indexed Applicative.

include WITH_PURE with type ('a, 'index) t := ('a, 'index) t
val pure : 'a -> ('a, 'index) t

Lift a value from 'a into a new t.

include Indexed_apply.WITH_APPLY with type ('a, 'index) t := ('a, 'index) t
val apply : ('a -> 'b, 'index) t -> ('a, 'index) t -> ('b, 'index) t

May apply a function wrapped into an t to a value also wrapped into an t.