package containers
A modular, clean and powerful extension of the OCaml standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v2.8.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb
doc/containers.data/CCIntMap/index.html
Module CCIntMap
Source
Map specialized for Int keys
status: stable
equal ~eq a b
checks whether a
and b
have the same set of pairs (key, value), comparing values with eq
.
Total order between maps; the precise order is unspecified.
Filter-map values using the given function
Source
val merge :
f:(int -> [ `Left of 'a | `Right of 'b | `Both of 'a * 'b ] -> 'c option) ->
'a t ->
'b t ->
'c t
merge ~f m1 m2
merges m1
and m2
together, calling f
once on every key that occurs in at least one of m1
and m2
. if f k binding = Some c
then k -> c
is part of the result, else k
is not part of the result.
Whole-collection operations
IO
Helpers
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page