com.phasmidsoftware.tableparser.core.table.Indexed
See theIndexed companion class
Companion object for the Indexed case class, providing utility methods to create and work with indexed collections.
Attributes
- Companion
-
class
- Graph
-
- Supertypes
-
trait Product
trait Mirror
class Object
trait Matchable
class Any
- Self type
-
Members list
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
-
Mirror
Attributes
- Inherited from:
-
Mirror
Creates an Indexed instance from a tuple containing a value of type T and an integer index.
Creates an Indexed instance from a tuple containing a value of type T and an integer index.
Type parameters
- T
-
The type of the first element in the tuple.
Value parameters
- tuple
-
A tuple where the first element is of type T and the second element is an Int representing the index.
Attributes
- Returns
-
An Indexed instance containing the provided index and value, with the order of elements reversed.
Creates a sequence of Indexed instances by associating each element of the input collection with a zero-based index.
Creates a sequence of Indexed instances by associating each element of the input collection with a zero-based index.
Type parameters
- T
-
the type of elements in the input collection
Value parameters
- rows
-
the input collection of elements to be indexed
Attributes
- Returns
-
a sequence of Indexed instances, where each element is paired with its index