Unordered_Bag

com.phasmidsoftware.gryphon.core.Unordered_Bag
See theUnordered_Bag companion class
object Unordered_Bag

Companion object for the Unordered_Bag class providing factory methods to create instances of Unordered with unordered collections of elements.

This object includes utility methods for creating empty unordered bags, bags from sequences, and bags initialized with varargs.

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_Bag[X]

Creates an instance of Unordered containing elements from the provided sequence.

Creates an instance of Unordered containing elements from the provided sequence.

Value parameters

xs

the sequence of elements to include in the Unordered collection

Attributes

Returns

an Unordered collection containing the elements from the input sequence

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

Creates an instance of Unordered containing the provided elements.

Creates an instance of Unordered containing the provided elements.

This method accepts a variable number of arguments and constructs an unordered collection from those arguments.

Value parameters

xs

the elements to include in the unordered collection

Attributes

Returns

an Unordered instance containing the provided elements

def empty[X]: Unordered_Bag[X]

Creates an empty instance of Unordered containing no elements.

Creates an empty instance of Unordered containing no elements.

Type parameters

X

the type of elements that the unordered collection can hold

Attributes

Returns

an empty unordered collection