Unordered_Set

com.phasmidsoftware.gryphon.core.Unordered_Set
See theUnordered_Set companion class
object Unordered_Set

A companion object for Unordered_Set, providing factory methods to create instances of unordered collections.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[X](xs: Seq[X]): Unordered[X]

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 Unordered collection

Value parameters

xs

the sequence of elements to be converted into an unordered collection

Attributes

Returns

an instance of Unordered containing the unique elements from the input sequence

def create[X](xs: X*): Unordered[X]

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.

def empty[X]: Unordered[X]

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].