@@ -9,109 +9,109 @@ import scala.annotation.implicitNotFound
99 */
1010@ implicitNotFound(" ${F} cannot be tupled as ${G}" )
1111sealed trait TupledFunction [F , G ] {
12- def apply (f : F ): G
12+ def tuple (f : F ): G
1313}
1414
1515package internal {
1616
1717 object TupledFunction {
1818
1919 def tupledFunction0 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
20- def apply (f : F ): G =
20+ def tuple (f : F ): G =
2121 ((args : Unit ) => f.asInstanceOf [() => Any ].apply()).asInstanceOf [G ]
2222 }
2323
2424 def tupledFunction1 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
25- def apply (f : F ): G =
25+ def tuple (f : F ): G =
2626 ((args : Tuple1 [Any ]) => f.asInstanceOf [Any => Any ].apply(args._1)).asInstanceOf [G ]
2727 }
2828
2929 def tupledFunction2 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
30- def apply (f : F ): G = f.asInstanceOf [Function2 [_, _, _]].tupled.asInstanceOf [G ]
30+ def tuple (f : F ): G = f.asInstanceOf [Function2 [_, _, _]].tupled.asInstanceOf [G ]
3131 }
3232
3333 def tupledFunction3 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
34- def apply (f : F ): G = f.asInstanceOf [Function3 [_, _, _, _]].tupled.asInstanceOf [G ]
34+ def tuple (f : F ): G = f.asInstanceOf [Function3 [_, _, _, _]].tupled.asInstanceOf [G ]
3535 }
3636
3737 def tupledFunction4 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
38- def apply (f : F ): G = f.asInstanceOf [Function4 [_, _, _, _, _]].tupled.asInstanceOf [G ]
38+ def tuple (f : F ): G = f.asInstanceOf [Function4 [_, _, _, _, _]].tupled.asInstanceOf [G ]
3939 }
4040
4141 def tupledFunction5 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
42- def apply (f : F ): G = f.asInstanceOf [Function5 [_, _, _, _, _, _]].tupled.asInstanceOf [G ]
42+ def tuple (f : F ): G = f.asInstanceOf [Function5 [_, _, _, _, _, _]].tupled.asInstanceOf [G ]
4343 }
4444
4545 def tupledFunction6 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
46- def apply (f : F ): G = f.asInstanceOf [Function6 [_, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
46+ def tuple (f : F ): G = f.asInstanceOf [Function6 [_, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
4747 }
4848
4949 def tupledFunction7 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
50- def apply (f : F ): G = f.asInstanceOf [Function7 [_, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
50+ def tuple (f : F ): G = f.asInstanceOf [Function7 [_, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
5151 }
5252
5353 def tupledFunction8 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
54- def apply (f : F ): G = f.asInstanceOf [Function8 [_, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
54+ def tuple (f : F ): G = f.asInstanceOf [Function8 [_, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
5555 }
5656
5757 def tupledFunction9 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
58- def apply (f : F ): G = f.asInstanceOf [Function9 [_, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
58+ def tuple (f : F ): G = f.asInstanceOf [Function9 [_, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
5959 }
6060
6161 def tupledFunction10 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
62- def apply (f : F ): G = f.asInstanceOf [Function10 [_, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
62+ def tuple (f : F ): G = f.asInstanceOf [Function10 [_, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
6363 }
6464
6565 def tupledFunction11 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
66- def apply (f : F ): G = f.asInstanceOf [Function11 [_, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
66+ def tuple (f : F ): G = f.asInstanceOf [Function11 [_, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
6767 }
6868
6969 def tupledFunction12 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
70- def apply (f : F ): G = f.asInstanceOf [Function12 [_, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
70+ def tuple (f : F ): G = f.asInstanceOf [Function12 [_, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
7171 }
7272
7373 def tupledFunction13 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
74- def apply (f : F ): G = f.asInstanceOf [Function13 [_, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
74+ def tuple (f : F ): G = f.asInstanceOf [Function13 [_, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
7575 }
7676
7777 def tupledFunction14 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
78- def apply (f : F ): G = f.asInstanceOf [Function14 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
78+ def tuple (f : F ): G = f.asInstanceOf [Function14 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
7979 }
8080
8181 def tupledFunction15 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
82- def apply (f : F ): G = f.asInstanceOf [Function15 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
82+ def tuple (f : F ): G = f.asInstanceOf [Function15 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
8383 }
8484
8585 def tupledFunction16 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
86- def apply (f : F ): G = f.asInstanceOf [Function16 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
86+ def tuple (f : F ): G = f.asInstanceOf [Function16 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
8787 }
8888
8989 def tupledFunction17 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
90- def apply (f : F ): G = f.asInstanceOf [Function17 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
90+ def tuple (f : F ): G = f.asInstanceOf [Function17 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
9191 }
9292
9393 def tupledFunction18 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
94- def apply (f : F ): G = f.asInstanceOf [Function18 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
94+ def tuple (f : F ): G = f.asInstanceOf [Function18 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
9595 }
9696
9797 def tupledFunction19 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
98- def apply (f : F ): G = f.asInstanceOf [Function19 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
98+ def tuple (f : F ): G = f.asInstanceOf [Function19 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
9999 }
100100
101101 def tupledFunction20 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
102- def apply (f : F ): G = f.asInstanceOf [Function20 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
102+ def tuple (f : F ): G = f.asInstanceOf [Function20 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
103103 }
104104
105105 def tupledFunction21 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
106- def apply (f : F ): G = f.asInstanceOf [Function21 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
106+ def tuple (f : F ): G = f.asInstanceOf [Function21 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
107107 }
108108
109109 def tupledFunction22 [F , G ]: TupledFunction [F , G ] = new TupledFunction {
110- def apply (f : F ): G = f.asInstanceOf [Function22 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
110+ def tuple (f : F ): G = f.asInstanceOf [Function22 [_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf [G ]
111111 }
112112
113113 def tupledFunctionXXL [F , G ]: TupledFunction [F , G ] = new TupledFunction {
114- def apply (f : F ): G =
114+ def tuple (f : F ): G =
115115 ((args : TupleXXL ) => f.asInstanceOf [FunctionXXL ].apply(args.elems)).asInstanceOf [G ]
116116 }
117117
0 commit comments