Module CCListLabels.Assoc
val get : eq:('a -> 'a -> bool) -> 'a -> ('a, 'b) t -> 'b optionget ~eq k alistreturnsSome vif the given keykis present intoalist, orNoneif not present.
val get_exn : eq:('a -> 'a -> bool) -> 'a -> ('a, 'b) t -> 'bget_exn ~eq k alistreturnsvif the elementkis present intoalist. Likeget, but unsafe.- raises Not_found
if the element is not present.
val set : eq:('a -> 'a -> bool) -> 'a -> 'b -> ('a, 'b) t -> ('a, 'b) tset ~eq k v alistadds the bindingk, vinto the listalist(erase it if already present).
val mem : ?eq:('a -> 'a -> bool) -> 'a -> ('a, _) t -> boolmem ?eq k alistreturnstrueiffkis a key inalist.- since
- 0.16