package travesty

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Permits mapping over the left type.

include Types_intf.S0 with type t := S.t
type elt

The element type.

include Mappable.Generic with type 'a t := S.t and type 'a elt := elt

Generic refers to the container type as 'a t, and the element type as 'a elt; substitute t/elt (arity-0) or 'a t/'a (arity-1) accordingly below.

include Types_intf.Generic with type 'a t := S.t with type 'a elt := elt
val map : S.t -> f:(elt -> elt) -> S.t

map c ~f maps f over every t in c.

OCaml

Innovation. Community. Security.