module type Mappable =A signature for data structures which have asig
..end
map : ('a -> 'b) -> ('a t -> 'b t)
operation.
If you create a new data structure, you should make it compatible
with Mappable
.
type 'a
mappable
'a List.t
val map : ('a -> 'b) ->
'a mappable -> 'b mappable
map f e
applies f
to every element of e
and returns the corresponding data structure