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/CCMultiSet/Make/index.html
Module CCMultiSet.Make
Source
Parameters
module O : Set.OrderedType
Signature
remove_mult set x n
removes at most n
occurrences of x
from set
.
update set x f
calls f n
where n
is the current multiplicity of x
in set
(0
to indicate its absence); the result of f n
is the new multiplicity of x
.
union a b
contains as many occurrences of an element x
as count a x + count b x
.
meet a b
is a multiset such that count (meet a b) x = max (count a x) (count b x)
.
intersection a b
is a multiset such that count (intersection a b) x = min (count a x) (count b x)
.
MultiSet difference. count (diff a b) x = max (count a x - count b x) 0
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page