Expand description
Native set module for unordered collections of unique elements.
Backed by HashMap for O(1) lookup. Exports: set.new(), set.from_array(arr), set.add(s, item), set.remove(s, item), set.contains(s, item), set.union(a, b), set.intersection(a, b), set.difference(a, b), set.to_array(s), set.size(s)
Functionsยง
- create_
set_ module - Create the
setmodule with set operations.