Via_map_and_duplicate.Req
type ('a, 'index) t
The type held by the Indexed Comonad.
Indexed Comonad
val extract : ('a, 'index) t -> 'a
Extract a 'a from ('a, 'index) t. Dual of return.
'a
('a, 'index) t
val duplicate : ('a, 'index) t -> (('a, 'index) t, 'index) t
Dual of join.
val map : ('a -> 'b) -> ('a, 'index) t -> ('b, 'index) t
Mapping over t from 'a to 'b.
t
'b