= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package containers
-
containers
-
containers.data
-
containers.monomorphic
-
containers.sexp
-
containers.top
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val get : eq:('a -> 'a -> bool) -> 'a -> ('a, 'b) t -> 'b option
Find the element.
val get_exn : eq:('a -> 'a -> bool) -> 'a -> ('a, 'b) t -> 'b
Like get
, but unsafe.
- raises Not_found
if the element is not present.
Add the binding into the list (erase it if already present).
val mem : eq:('a -> 'a -> bool) -> 'a -> ('a, _) t -> bool
mem x l
returns true
iff x
is a key in l
.
- since 0.16
update k ~f l
updates l
on the key k
, by calling f (get l k)
and removing k
if it returns None
, mapping k
to v'
if it returns Some v'
.
- since 0.16