A ZSet[A, B] is a set of A values where B represents some notion of "how many" A values are included in the set. This can be the number of times each element appears in the set if B is a natural number, the probability associated with an element in the set if B is a rational number, or even whether an element appears at all if B is a boolean.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Members list
Value members
Concrete methods
A symbolic alias for intersect.
A symbolic alias for intersect.
Attributes
A symbolic alias for diff.
A symbolic alias for diff.
Attributes
A symbolic alias for zip.
A symbolic alias for zip.
Attributes
A symbolic alias for combine.
A symbolic alias for combine.
Attributes
Returns the number of times the specified element appears in the set.
Returns the number of times the specified element appears in the set.
Attributes
Combines this set with the specified set to produce a new set where the number of times each element appears is the sum of the number of times it appears in this set and the specified set.
Combines this set with the specified set to produce a new set where the number of times each element appears is the sum of the number of times it appears in this set and the specified set.
Attributes
Combines this set with the specified set to produce a new set where the number of times each element appears is the difference between the number of times it appears in this set and the specified set.
Combines this set with the specified set to produce a new set where the number of times each element appears is the difference between the number of times it appears in this set and the specified set.
Attributes
Returns whether this set is equal to the specified set, meaning that the same elements appear in both sets the same number of times.
Returns whether this set is equal to the specified set, meaning that the same elements appear in both sets the same number of times.
Attributes
- Definition Classes
-
Any
Creates a new set for each element in this set and combines the resulting sets together. The number of times each element appears will be the sum of the products of the number of times it appeared in the original set and the number of times it appears in each new set.
Creates a new set for each element in this set and combines the resulting sets together. The number of times each element appears will be the sum of the products of the number of times it appeared in the original set and the number of times it appears in each new set.
Attributes
Returns the hash code of this set.
Returns the hash code of this set.
Attributes
- Definition Classes
-
Any
Combines this set with the specified set to produce a new set where the number of times each element appears is the minimum of the number of times it appears in this set and the specified set.
Combines this set with the specified set to produce a new set where the number of times each element appears is the minimum of the number of times it appears in this set and the specified set.
Attributes
Transforms the elements in the set using the specified function. If this results in mapping two or more elements to the same values, the number of times the new value appears in the set will be the sum of the number of times each of the old values appeared in the set.
Transforms the elements in the set using the specified function. If this results in mapping two or more elements to the same values, the number of times the new value appears in the set will be the sum of the number of times each of the old values appeared in the set.
Attributes
Converts this set to a Map from elements to how many times they appear in the set.
Converts this set to a Map from elements to how many times they appear in the set.
Attributes
Converts this set to a non-empty one.
Converts this set to a non-empty one.
Attributes
Converts this set to a Set, discarding information about how many times an element appears in the set beyond whether it appears at all.
Converts this set to a Set, discarding information about how many times an element appears in the set beyond whether it appears at all.
Attributes
Returns a meaningful string representation of this set.
Returns a meaningful string representation of this set.
Attributes
- Definition Classes
-
Any
Transforms the representation of how many times each element appears in the set with the specified function.
Transforms the representation of how many times each element appears in the set with the specified function.
Attributes
Combines this set with the specified set to produce a new set where the number of times each element appears is the maximum of the number of times it appears in this set and the specified set.
Combines this set with the specified set to produce a new set where the number of times each element appears is the maximum of the number of times it appears in this set and the specified set.
Attributes
Combines this set with the specified set to produce their cartesian product.
Combines this set with the specified set to produce their cartesian product.
Attributes
Combines this set with the specified set to produce their cartesian product, combining pair of elements using the specified function f.
Combines this set with the specified set to produce their cartesian product, combining pair of elements using the specified function f.