containers
A modular, clean and powerful extension of the OCaml standard library
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
Library containers
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
ON THIS PAGE
No table of contents