package containers

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

Module type CCMultiMap.SSource

Sourcetype key
Sourcetype value
Sourcetype t
Sourceval empty : t

Empty multimap.

Sourceval is_empty : t -> bool

Empty multimap?

Sourceval add : t -> key -> value -> t

Add a key/value binding.

Sourceval remove : t -> key -> value -> t

Remove the binding.

Sourceval remove_all : t -> key -> t

Remove the key from the map.

Sourceval mem : t -> key -> bool

Is there a binding for this key?

Sourceval find : t -> key -> value list

List of values for this key.

Sourceval find_iter : t -> key -> (value -> unit) -> unit

Iterate on bindings for this key.

Sourceval count : t -> key -> int

Number of bindings for this key.

Sourceval iter : t -> (key -> value -> unit) -> unit

Iterate on all key/value.

Sourceval fold : t -> 'a -> ('a -> key -> value -> 'a) -> 'a

Fold on all key/value.

Sourceval size : t -> int

Number of keys.

Sourceval union : t -> t -> t

Union of multimaps.

Sourceval inter : t -> t -> t

Intersection of multimaps.

Sourceval diff : t -> t -> t

Difference of maps, i.e. bindings of the first that are not in the second.

Sourceval equal : t -> t -> bool

Same multimap.

Sourceval compare : t -> t -> int

Total order on multimaps.

Sourceval submap : t -> t -> bool

submap m1 m2 is true iff all bindings of m1 are also in m2.

Sourceval to_seq : t -> (key * value) sequence
Sourceval of_seq : ?init:t -> (key * value) sequence -> t
Sourceval keys : t -> key sequence
Sourceval values : t -> value sequence

Some values may occur several times.

OCaml

Innovation. Community. Security.