package containers
A modular, clean and powerful extension of the OCaml standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v2.8.tar.gz
md5=03b80e963186e91ddac62ef645bf7fb2
sha512=c8f434808be540c16926bf03d89f394d33fc2d092f963a7b6d412481229e0a96290f1ad7c7d522415115d35426b7aa0b3fda4b991ddc321dad279d402c9a0c0b
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