Parameter Via_pure_and_apply.Req

type ('a, 'index) t

The type held by the Indexed Alternative.

include Preface_specs.Indexed_applicative.WITH_PURE_AND_APPLY with type ('a, 'index) t := ('a, 'index) t
include Preface_specs.Indexed_applicative.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 Preface_specs.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.

include Preface_specs.Indexed_alternative.WITH_NEUTRAL_AND_COMBINE with type ('a, 'index) t := ('a, 'index) t
val combine : ('a, 'index) t -> ('a, 'index) t -> ('a, 'index) t

Combine two values of t into one.

val neutral : ('a, 'index) t

The neutral element of the t.