Skip to content
This repository
Newer
Older
100644 38 lines (33 sloc) 2.659 kb
c1f27b70 »
2008-02-19 anonfuns now accept up to 22 args
1 /* __ *\
2 ** ________ ___ / / ___ Scala API **
2d11a5bd »
2011-01-20 Updated copyright notices to 2011
3 ** / __/ __// _ | / / / _ | (c) 2002-2011, LAMP/EPFL **
c1f27b70 »
2008-02-19 anonfuns now accept up to 22 args
4 ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
5 ** /____/\___/_/ |_/____/_/ | | **
6 ** |/ **
7 \* */
fd1ca1e6 »
2011-02-20 Moved unlift to the Function companion object, ...
8 // GENERATED CODE: DO NOT EDIT. See scala.Function0 for timestamp.
c1f27b70 »
2008-02-19 anonfuns now accept up to 22 args
9
10 package scala
11
12
fd1ca1e6 »
2011-02-20 Moved unlift to the Function companion object, ...
13 /** A function of 19 parameters.
c1f27b70 »
2008-02-19 anonfuns now accept up to 22 args
14 *
15 */
07245526 »
2008-04-23 Modified the implementation of curry so that for
16 trait Function19[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, +R] extends AnyRef { self =>
fd1ca1e6 »
2011-02-20 Moved unlift to the Function companion object, ...
17 /** Apply the body of this function to the arguments.
18 * @return the result of function application.
19 */
20 def apply(v1: T1, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6, v7: T7, v8: T8, v9: T9, v10: T10, v11: T11, v12: T12, v13: T13, v14: T14, v15: T15, v16: T16, v17: T17, v18: T18, v19: T19): R
21 /** Creates a curried version of this function.
22 *
23 * @return a function `f` such that `f(x1)(x2)(x3)(x4)(x5)(x6)(x7)(x8)(x9)(x10)(x11)(x12)(x13)(x14)(x15)(x16)(x17)(x18)(x19) == apply(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19)`
bb23d766 »
2012-02-14 Specialization action.
24 */ def curried: T1 => T2 => T3 => T4 => T5 => T6 => T7 => T8 => T9 => T10 => T11 => T12 => T13 => T14 => T15 => T16 => T17 => T18 => T19 => R = {
853b1817 »
2010-01-18 Adjectified some parts of speech as discussed o...
25 (x1: T1) => ((x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9, x10: T10, x11: T11, x12: T12, x13: T13, x14: T14, x15: T15, x16: T16, x17: T17, x18: T18, x19: T19) => self.apply(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19)).curried
a030f0d8 »
2009-12-02 Built out genprod to create a tuple method for ...
26 }
27
fd1ca1e6 »
2011-02-20 Moved unlift to the Function companion object, ...
28 /** Creates a tupled version of this function: instead of 19 arguments,
29 * it accepts a single [[scala.Tuple19]] argument.
30 *
31 * @return a function `f` such that `f((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19)) == f(Tuple19(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19)) == apply(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19)`
a030f0d8 »
2009-12-02 Built out genprod to create a tuple method for ...
32 */
853b1817 »
2010-01-18 Adjectified some parts of speech as discussed o...
33 def tupled: Tuple19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] => R = {
a030f0d8 »
2009-12-02 Built out genprod to create a tuple method for ...
34 case Tuple19(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19) => apply(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19)
07245526 »
2008-04-23 Modified the implementation of curry so that for
35 }
fd1ca1e6 »
2011-02-20 Moved unlift to the Function companion object, ...
36 override def toString() = "<function19>"
c1f27b70 »
2008-02-19 anonfuns now accept up to 22 args
37 }
Something went wrong with that request. Please try again.