Scala Library: scala.Tuple1
scala.Tuple1
A tuple of 1 elements; the canonical representation of a scala.Product1.
- _1
- Element 1 of this Tuple1
- Annotations
- @ deprecatedInheritance (message =…, since = “2.11.0”)
- Source
Value Members From scala.Product1
def productElement(n: Int): Any
Returns the n-th projection of this product if 0 < n <= productArity, otherwise
throws an IndexOutOfBoundsException
.
- n
- number of the projection to be returned
- returns
- same as
._(n+1)
, for exampleproductElement(0)
is the same as._1
.
- same as
- Definition Classes
- Product1 → Product
- Annotations
- @ throws (clazz = classOf[IndexOutOfBoundsException])
- Exceptions thrown *
(defined at scala.Product1)
Instance Constructors From scala.Tuple1
new Tuple1(_1: T1)
Create a new tuple with 1 elements.
- _1
- Element 1 of this Tuple1 (defined at scala.Tuple1)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.