Indexed_comonad.WITH_EXTEND
Minimal definition using extract and extend.
extract
extend
type ('a, 'index) t
The type held by the Indexed Comonad.
Indexed Comonad
val extract : ('a, 'index) t -> 'a
Extract a 'a from t. Dual of return.
'a
t
val extend : (('a, 'index) t -> 'b) -> ('a, 'index) t -> ('b, 'index) t
Dual of bind.