package baby

  1. Overview
  2. Docs

Module Custom.MakeSource

Parameters

module E : OrderedType

Signature

Sourcemodule Set : SET with type elt = E.t
Sourcemodule Map : MAP with type key = E.t
Sourceval domain : 'a Map.t -> Set.t

domain m returns the domain of the map m, that is, the set of all keys for which there is a binding in the map m.

Time complexity: O(n), where n is the size of the map m.

Sourceval lift : (Map.key -> 'a) -> Set.t -> 'a Map.t

lift f s returns a map whose domain is the set s and where every key x in the set s is mapped to the value f x.

Time complexity: O(n), where n is the size of the set s.

OCaml

Innovation. Community. Security.