immut_multiset

data structure for immutable multiset (bag).

multiset
data-structure
immutable
moon add BigOrangeQWQ/immut_multiset@0.1.5
Download zip
Version
0.1.5
License
Apache-2.0
Last updated
last year
Downloads
28
README

#ImmutableMultiset

#Usage

fn main {
let set = @multiset.of([1, 2, 3, 3, 4])
println(set.count(3))

let set = @hashmultiset.new().add(1, times=4).add(2).add(4)
if set.contains(2) {
println(set.count(2))
}
}

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io