Skip to content
Newer
Older
100644 38 lines (28 sloc) 2.19 KB
c1f27b7 anonfuns now accept up to 22 args
michelou authored
1 /* __ *\
2 ** ________ ___ / / ___ Scala API **
2d11a5b Updated copyright notices to 2011
Antonio Cunei authored
3 ** / __/ __// _ | / / / _ | (c) 2002-2011, LAMP/EPFL **
c1f27b7 anonfuns now accept up to 22 args
michelou authored
4 ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
5 ** /____/\___/_/ |_/____/_/ | | **
6 ** |/ **
7 \* */
8
5cdb213 @paulp Documentation being generated by genprod was pr...
paulp authored
9 // generated by genprod on Sat Oct 16 11:19:09 PDT 2010 (with extra methods)
c1f27b7 anonfuns now accept up to 22 args
michelou authored
10
11 package scala
12
13
e586732 @paulp Newly generated Tuple/Product/Function classes ...
paulp authored
14
d047549 @dragos Regenerated tuples, products and (Abstract)Func...
dragos authored
15
5cdb213 @paulp Documentation being generated by genprod was pr...
paulp authored
16 /** Function with 19 parameters.
c1f27b7 anonfuns now accept up to 22 args
michelou authored
17 *
18 */
0724552 Modified the implementation of curry so that for
Geoffrey Washburn authored
19 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 =>
e586732 @paulp Newly generated Tuple/Product/Function classes ...
paulp authored
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 override def toString() = "<function19>"
c1f27b7 anonfuns now accept up to 22 args
michelou authored
22
853b181 @paulp Adjectified some parts of speech as discussed o...
paulp authored
23 /** f(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19) == (f.curried)(x1)(x2)(x3)(x4)(x5)(x6)(x7)(x8)(x9)(x10)(x11)(x12)(x13)(x14)(x15)(x16)(x17)(x18)(x19)
0724552 Modified the implementation of curry so that for
Geoffrey Washburn authored
24 */
853b181 @paulp Adjectified some parts of speech as discussed o...
paulp authored
25 def curried: T1 => T2 => T3 => T4 => T5 => T6 => T7 => T8 => T9 => T10 => T11 => T12 => T13 => T14 => T15 => T16 => T17 => T18 => T19 => R = {
26 (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
a030f0d @paulp Built out genprod to create a tuple method for ...
paulp authored
27 }
853b181 @paulp Adjectified some parts of speech as discussed o...
paulp authored
28 @deprecated("Use 'curried' instead")
29 def curry = curried
a030f0d @paulp Built out genprod to create a tuple method for ...
paulp authored
30
853b181 @paulp Adjectified some parts of speech as discussed o...
paulp authored
31 /* f(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19) == (f.tupled)(Tuple19(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19))
a030f0d @paulp Built out genprod to create a tuple method for ...
paulp authored
32 */
853b181 @paulp Adjectified some parts of speech as discussed o...
paulp authored
33 def tupled: Tuple19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] => R = {
a030f0d @paulp Built out genprod to create a tuple method for ...
paulp authored
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)
0724552 Modified the implementation of curry so that for
Geoffrey Washburn authored
35 }
e586732 @paulp Newly generated Tuple/Product/Function classes ...
paulp authored
36
c1f27b7 anonfuns now accept up to 22 args
michelou authored
37 }
Something went wrong with that request. Please try again.