A companion object for Unordered_Set, providing factory methods to create instances of unordered collections.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Unordered_Set.type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Mirror
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates an instance of Unordered from a sequence of elements.
Creates an instance of Unordered from a sequence of elements.
The elements in the provided sequence are converted into a Set, ensuring the resulting unordered collection contains unique elements with no particular order.
Type parameters
- X
-
the type of elements contained in the input sequence and resulting
Unorderedcollection
Value parameters
- xs
-
the sequence of elements to be converted into an unordered collection
Attributes
- Returns
-
an instance of
Unorderedcontaining the unique elements from the input sequence
Creates a new instance of Unordered[X] populated with the provided elements.
Creates a new instance of Unordered[X] populated with the provided elements.
Type parameters
- X
-
the type of the elements contained within the unordered collection.
Value parameters
- xs
-
the elements to include in the unordered collection. These elements are provided as a variable-length argument list, allowing the creation of an unordered collection containing one or more elements.
Attributes
- Returns
-
an instance of
Unordered[X]containing the provided elements.
Creates an empty unordered collection.
Creates an empty unordered collection.
The method initializes and returns an instance of Unordered[X] with no elements. This serves as a starting point for creating immutable, unordered collections without any content.
Attributes
- Returns
-
an empty instance of
Unordered[X].