Set Library (Set)
Linked with the "set" type.
Example Usage
#[main]
fn main() {
const a = {1, 2, 3};
assert_eq(a.len(), 3);
assert_eq(Set.len(a), 3);
}Set.any(set: set) -> bool
const set = {1, 2, 3};
assert(set.any());Set.append(set: set, other: set) -> void
const set = {1, 2, 3};
set.append({3, 4});
assert_eq(set, {1, 2, 3, 4});Set.at(set: set, index: int) -> unknown
Set.clear(set: set) -> void
Set.contains(set: set, val: unknown) -> bool
Set.difference(set: set, other: set) -> set
Set.disjoint(set: set, other: set) -> bool
Set.empty(set: set) -> bool
Set.first(set: set) -> unknown
Set.insert(set: set, val: unknown) -> bool
Set.intersection(set: set, other: set) -> set
Set.is_uniform(set: set) -> bool
Set.last(set: set) -> unknown
Set.len(set: set) -> int
Set.pop_first(set: set) -> unknown
Set.pop_last(set: set) -> unknown
Set.remove(set: set, val: unknown) -> unknown
Set.split(set: set, val: unknown) -> (set, set)
Set.subset(set: set, other: set) -> bool
Set.superset(set: set, other: set) -> bool
Set.symmetric_difference(set: set, other: set) -> set
Set.to_uniform(set: set, type: str) -> void
Set.union(set: set, other: set) -> set
Last updated