18
18
* @return the result of function application.
20
20
def apply(v1: T1, v2: T2, v3: T3, v4: T4, v5: T5): R
22
21
/** Creates a curried version of this function.
24
23
* @return a function `f` such that `f(x1)(x2)(x3)(x4)(x5) == apply(x1, x2, x3, x4, x5)`
26
def curried: T1 => T2 => T3 => T4 => T5 => R = {
25
@annotation.unspecialized def curried: T1 => T2 => T3 => T4 => T5 => R = {
27
26
(x1: T1) => ((x2: T2, x3: T3, x4: T4, x5: T5) => self.apply(x1, x2, x3, x4, x5)).curried
29
@deprecated("Use 'curried' instead", "2.8.0")
32
28
/** Creates a tupled version of this function: instead of 5 arguments,
33
29
* it accepts a single [[scala.Tuple5]] argument.
35
31
* @return a function `f` such that `f((x1, x2, x3, x4, x5)) == f(Tuple5(x1, x2, x3, x4, x5)) == apply(x1, x2, x3, x4, x5)`
37
def tupled: Tuple5[T1, T2, T3, T4, T5] => R = {
34
@annotation.unspecialized def tupled: Tuple5[T1, T2, T3, T4, T5] => R = {
38
35
case Tuple5(x1, x2, x3, x4, x5) => apply(x1, x2, x3, x4, x5)
40
37
override def toString() = "<function5>"