package batteries
A community-maintained standard library extension
Install
Dune Dependency
Authors
Maintainers
Sources
v3.6.0.tar.gz
md5=1bcb27dfbd130eb057561196ef851649
sha512=2a56611b09a5f1cba6457539f8b6bc87a5f2a5454b36cdb39f6e0d6a5dac6db179aab1ba87c74dd49cc41df31a9a96feb349028ea41df7371ecb47f4d9dfafc4
doc/batteries.unthreaded/BatHashtbl/Labels/index.html
Module BatHashtbl.Labels
Operations on Hashtbl
with labels.
This module overrides a number of functions of Hashtbl
by functions in which some arguments require labels. These labels are there to improve readability and safety and to let you change the order of arguments to functions. In every case, the behavior of the function is identical to that of the corresponding function of Hashtbl
.
@documents Hashtbl.Labels
val add : ('a, 'b) t -> key:'a -> data:'b -> unit
val replace : ('a, 'b) t -> key:'a -> data:'b -> unit
val iter : f:(key:'a -> data:'b -> unit) -> ('a, 'b) t -> unit
val for_all : f:(key:'a -> data:'b -> bool) -> ('a, 'b) t -> bool
val map_inplace : f:(key:'a -> data:'b -> 'b) -> ('a, 'b) t -> unit
val filter_inplace : f:('a -> bool) -> ('key, 'a) t -> unit
val filteri_inplace : f:(key:'key -> data:'a -> bool) -> ('key, 'a) t -> unit
val filter_map_inplace :
f:(key:'key -> data:'a -> 'a option) ->
('key, 'a) t ->
unit
val fold : f:(key:'a -> data:'b -> 'c -> 'c) -> ('a, 'b) t -> init:'c -> 'c
val exists : f:(key:'a -> data:'b -> bool) -> ('a, 'b) t -> bool
val modify : key:'a -> f:('b -> 'b) -> ('a, 'b) t -> unit
val modify_def : default:'b -> key:'a -> f:('b -> 'b) -> ('a, 'b) t -> unit
val modify_opt : key:'a -> f:('b option -> 'b option) -> ('a, 'b) t -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>