package colibri2

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t

Private Hashtbl

type key
val find : 'a t -> key -> 'a

Same as Hashtbl.find

val find_def : 'a t -> 'a -> key -> 'a

return the first binding or the given value if none found

val find_opt : 'a t -> key -> 'a option

return the first binding or None if none found

val find_exn : 'a t -> exn -> key -> 'a

return the first binding or raise the given exception if none found

val iter : (key -> 'a -> unit) -> 'a t -> unit

Same as Hashtbl.iter

val fold : (key -> 'a -> 'acc -> 'acc) -> 'a t -> 'acc -> 'acc

Same as Hashtbl.fold

val mem : 'a t -> key -> bool

Same as Hashtbl.mem

val length : 'a t -> int

Same as Hashtbl.length

val is_empty : 'a t -> bool

test if the hashtbl is empty

OCaml

Innovation. Community. Security.