Std.Set
39 public declarations
- all
&Set[T] -> fn(T) -> Bool -> BoolWhether every member satisfies the predicate. True for an empty set.
- any
&Set[T] -> fn(T) -> Bool -> BoolWhether any member satisfies the predicate. False for an empty set.
- at
&Set[T] -> Int -> Option[T]The member at a position in order, or `None` when there is none.
- cartesian
&Set[A] -> &Set[B] -> Set[(A, B)]Every pairing of one set's members with the other's.
- contains
&Set[T] -> T -> BoolWhether a value is a member.
- containsAll
&Set[T] -> &Array[T] -> BoolWhether every given member is in the set.
- count
&Set[T] -> fn(T) -> Bool -> IntHow many members the predicate accepts.
- difference
&Set[T] -> &Set[T] -> Set[T]Every member of the first set that is not in the second.
- empty
Set[T]A set with no members.
- equals
&Set[T] -> &Set[T] -> BoolWhether two sets hold the same members.
- filter
&Set[T] -> fn(T) -> Bool -> Set[T]Only the members the predicate accepts.
- find
&Set[T] -> fn(T) -> Bool -> Option[T]The first member the predicate accepts, or `None`.
- fold
&Set[T] -> fn(A, T) -> A -> A -> AEvery member combined into one value, in order.
- fromArray
&Array[T] -> Set[T]A set built from an array, with duplicates dropped.
- greatest
&Set[T] -> Option[T]The largest member, or `None` for an empty set.
- insert
&Set[T] -> T -> Set[T]The set with a member added, or unchanged when it is already there.
- insertAll
&Set[T] -> &Array[T] -> Set[T]Every given member added.
- intersectAll
&Array[Set[T]] -> Set[T]Every member of every set that is in all of them.
- intersection
&Set[T] -> &Set[T] -> Set[T]Every member of both sets.
- intersects
&Set[T] -> &Set[T] -> BoolWhether the two sets share any member. The complement of `isDisjointFrom`,
- isDisjointFrom
&Set[T] -> &Set[T] -> BoolWhether the two sets share no members.
- isEmpty
&Set[T] -> BoolWhether the set has no members.
- isSubsetOf
&Set[T] -> &Set[T] -> BoolWhether every member of the first set is in the second.
- isSupersetOf
&Set[T] -> &Set[T] -> BoolWhether every member of the second set is in the first.
- least
&Set[T] -> Option[T]The smallest member, or `None` for an empty set.
- map
&Set[A] -> fn(A) -> B -> Set[B]Every member transformed. The result may be smaller when the
- partition
&Set[T] -> fn(T) -> Bool -> (Set[T], Set[T])The members the predicate accepts, and the members it rejects.
- remove
&Set[T] -> T -> Set[T]The set with a member removed, or unchanged when it is not there.
- removeAll
&Set[T] -> &Array[T] -> Set[T]Every given member taken away, in one pass for the same reason.
- removeGreatest
&Set[T] -> Set[T]The set without its largest member.
- removeIf
&Set[T] -> fn(T) -> Bool -> Set[T]Only the members the predicate rejects.
- removeLeast
&Set[T] -> Set[T]The set without its smallest member.
- singleton
T -> Set[T]A set with one member.
- size
&Set[T] -> IntThe number of members.
- split
&Set[T] -> T -> fn(T, T) -> Bool -> (Set[T], Set[T])The members a comparison places before a value, and those it places after.
- symmetricDifference
&Set[T] -> &Set[T] -> Set[T]Every member of exactly one of the two sets.
- toArray
&Set[T] -> Array[T]Every member, in order.
- union
&Set[T] -> &Set[T] -> Set[T]Every member of either set.
- unionAll
&Array[Set[T]] -> Set[T]Every set combined.
