Module type Indexed_applicative.WITH_PURE_MAP_AND_PRODUCT

Minimal interface using map and product.

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_MAP_AND_PRODUCT with type ('a, 'index) t := ('a, 'index) t
include Indexed_functor.WITH_MAP with type ('a, 'index) t := ('a, 'index) t
val map : ('a -> 'b) -> ('a, 'index) t -> ('b, 'index) t

Mapping over t from 'a to 'b.

include Indexed_apply.WITH_PRODUCT with type ('a, 'index) t := ('a, 'index) t
val product : ('a, 'index) t -> ('b, 'index) t -> ('a * 'b, 'index) t

Monoidal product between two t.