package batteries

  1. Overview
  2. Docs
A community-maintained standard library extension

Install

Dune Dependency

Authors

Maintainers

Sources

v3.7.2.tar.gz
md5=1fd7bddce07cf5d244fc9427f7b5e4d4
sha512=c0f2a0fdc8253e0ea999d8d4c58bfbf32b18d251a2e1d9656bf279de5f01a33e9aabac3af4d95f465f8b671e7711ebd37218043face233340a0c11b08fa62f78

doc/batteries.unthreaded/BatHashtbl/Cap/Labels/index.html

Module Cap.LabelsSource

Operations on BatHashtbl.Cap with labels.

Sourceval add : ('a, 'b, [> `Write ]) t -> key:'a -> data:'b -> unit
Sourceval replace : ('a, 'b, [> `Write ]) t -> key:'a -> data:'b -> unit
Sourceval iter : f:(key:'a -> data:'b -> unit) -> ('a, 'b, [> `Read ]) t -> unit
Sourceval for_all : f:(key:'a -> data:'b -> bool) -> ('a, 'b, [> `Read ]) t -> bool
Sourceval map : f:(key:'a -> data:'b -> 'c) -> ('a, 'b, [> `Read ]) t -> ('a, 'c, _) t
Sourceval map_inplace : f:(key:'a -> data:'b -> 'b) -> ('a, 'b, [> `Write ]) t -> unit
Sourceval filter : f:('a -> bool) -> ('key, 'a, [> `Read ]) t -> ('key, 'a, _) t
Sourceval filter_inplace : f:('a -> bool) -> ('key, 'a, [> `Write ]) t -> unit
Sourceval filteri : f:(key:'key -> data:'a -> bool) -> ('key, 'a, [> `Read ]) t -> ('key, 'a, _) t
Sourceval filteri_inplace : f:(key:'key -> data:'a -> bool) -> ('key, 'a, [> `Write ]) t -> unit
Sourceval filter_map : f:(key:'key -> data:'a -> 'b option) -> ('key, 'a, [> `Read ]) t -> ('key, 'b, _) t
Sourceval filter_map_inplace : f:(key:'key -> data:'a -> 'a option) -> ('key, 'a, [> `Write ]) t -> unit
Sourceval fold : f:(key:'a -> data:'b -> 'c -> 'c) -> ('a, 'b, [> `Read ]) t -> init:'c -> 'c
Sourceval exists : f:(key:'a -> data:'b -> bool) -> ('a, 'b, [> `Read ]) t -> bool
Sourceval merge : f:('key -> 'a option -> 'b option -> 'c option) -> left:('key, 'a, [> `Read ]) t -> right:('key, 'b, [> `Read ]) t -> ('key, 'c, _) t
Sourceval merge_all : f:('key -> 'a list -> 'b list -> 'c list) -> left:('key, 'a, [> `Read ]) t -> right:('key, 'b, [> `Read ]) t -> ('key, 'c, _) t
OCaml

Innovation. Community. Security.