Tuple1
A tuple of 1 elements; the canonical representation of a scala.Product1.
- Value Params
- _1
Element 1 of this Tuple1
- Constructor
Create a new tuple with 1 elements.
- Source
- Tuple1.scala
Value members
Concrete methods
Inherited methods
@throws(scala.Predef.classOf[scala.IndexOutOfBoundsException])
Returns the n-th projection of this product if 0 <= n < productArity,
otherwise throws an IndexOutOfBoundsException
.
- Value Params
- n
number of the projection to be returned
- Returns
same as
._(n+1)
, for exampleproductElement(0)
is the same as._1
.- Throws
- IndexOutOfBoundsException
if the
n
is out of range(n < 0 || n >= 1).
- Definition Classes
- Inherited from
- Product1
- Source
- Product1.scala
An iterator over the names of all the elements of this product.
- Inherited from
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
- Returns
in the default implementation, an
Iterator[Any]
- Inherited from
- Product
- Source
- Product.scala