Up

Module Access_control

Signature

type ('key, 'data, -'z) any
module Immutable : sig .. end
module Read_only : sig .. end
module Read_write : sig .. end
val of_hashtbl : ('key, 'data) Core.Std.Hashtbl.t -> ('key, 'data, [< ]) any
val clear : (_, _) Read_write.t -> unit
val copy : ('a, 'b, [> ]) any -> ('a, 'b, [< ]) any
val fold : ('a, 'b, [> ]) any -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val iter_vals : ('a, 'b, [> ]) any -> f:('b -> unit) -> unit
val iter : ('a, 'b, [> ]) any -> f:(key:'a -> data:'b -> unit) -> unit
val iteri : ('a, 'b, [> ]) any -> f:(key:'a -> data:'b -> unit) -> unit
val existsi : ('a, 'b, [> ]) any -> f:(key:'a -> data:'b -> bool) -> bool
val exists : ('a, 'b, [> ]) any -> f:('b -> bool) -> bool
val length : (_, _, _) any -> int
val is_empty : (_, _, _) any -> bool
val mem : ('a, _, [> ]) any -> 'a -> bool
val remove : ('a, _) Read_write.t -> 'a -> unit
val replace : ('a, 'b) Read_write.t -> key:'a -> data:'b -> unit
val set : ('a, 'b) Read_write.t -> key:'a -> data:'b -> unit
val add : ('a, 'b) Read_write.t -> key:'a -> data:'b -> [
| `Ok
| `Duplicate
]
val add_exn : ('a, 'b) Read_write.t -> key:'a -> data:'b -> unit
val change : ('a, 'b) Read_write.t -> 'a -> f:('b option -> 'b option) -> unit
val update : ('a, 'b) Read_write.t -> 'a -> f:('b option -> 'b) -> unit
val add_multi : ('a, 'b list) Read_write.t -> key:'a -> data:'b -> unit
val remove_multi : ('a, _ list) Read_write.t -> 'a -> unit
val map : ('a, 'b, [> ]) any -> f:('b -> 'c) -> ('a, 'c, [< ]) any
val mapi : ('a, 'b, [> ]) any -> f:(key:'a -> data:'b -> 'c) -> ('a, 'c, [< ]) any
val filter_map : ('a, 'b, [> ]) any -> f:('b -> 'c option) -> ('a, 'c, [< ]) any
val filter_mapi : ('a, 'b, [> ]) any -> f:(key:'a -> data:'b -> 'c option) -> ('a, 'c, [< ]) any
val filter : ('a, 'b, [> ]) any -> f:('b -> bool) -> ('a, 'b, [< ]) any
val filteri : ('a, 'b, [> ]) any -> f:(key:'a -> data:'b -> bool) -> ('a, 'b, [< ]) any
val find_or_add : ('a, 'b) Read_write.t -> 'a -> default:(unit -> 'b) -> 'b
val find : ('a, 'b, [> ]) any -> 'a -> 'b option
val find_exn : ('a, 'b, [> ]) any -> 'a -> 'b
val merge : ('k, 'a, [> ]) any -> ('k, 'b, [> ]) any -> f:(key:'k -> [
| `Left of 'a
| `Right of 'b
| `Both of 'a * 'b
] -> 'c option) -> ('k, 'c, [< ]) any
type 'a merge_into_action =
| Remove
| Set_to of 'a
val merge_into : src:('a, 'b, [> ]) any -> dst:('a, 'b) Read_write.t -> f:(key:'a -> 'b -> 'b option -> 'b merge_into_action) -> unit
val keys : ('a, 'b, [> ]) any -> 'a list
val data : ('a, 'b, [> ]) any -> 'b list
val filter_inplace : ('a, 'b) Read_write.t -> f:('b -> bool) -> unit
val filteri_inplace : ('a, 'b) Read_write.t -> f:(key:'a -> data:'b -> bool) -> unit
val equal : ('a, 'b, [> ]) any -> ('a, 'b, [> ]) any -> ('b -> 'b -> bool) -> bool
val to_alist : ('a, 'b, [> ]) any -> ('a * 'b) list
val incr : ?by:int -> ?remove_if_zero:bool -> ('a, int) Read_write.t -> 'a -> unit