@@ -56,60 +56,60 @@ public extension Connection {
5656 return { arg in fn ( [ arg] ) }
5757 }
5858
59- public func createFunction< Z : Value , A : Value > ( function: String , deterministic: Bool = false , _ block: @escaping ( A ? ) -> Z ) throws -> ( ( Expression < A ? > ) -> Expression < Z > ) {
59+ public func createFunction< Z : Value , A : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ? ) -> Z ) throws -> ( ( Expression < A ? > ) -> Expression < Z > ) {
6060 let fn = try createFunction ( function, 1 , deterministic) { args in block ( args [ 0 ] . map ( value) ) }
6161 return { arg in fn ( [ arg] ) }
6262 }
6363
64- public func createFunction< Z : Value , A : Value > ( function: String , deterministic: Bool = false , _ block: @escaping ( A ) -> Z ? ) throws -> ( ( Expression < A > ) -> Expression < Z ? > ) {
64+ public func createFunction< Z : Value , A : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ) -> Z ? ) throws -> ( ( Expression < A > ) -> Expression < Z ? > ) {
6565 let fn = try createFunction ( function, 1 , deterministic) { args in block ( value ( args [ 0 ] ) ) }
6666 return { arg in fn ( [ arg] ) }
6767 }
6868
69- public func createFunction< Z : Value , A : Value > ( function: String , deterministic: Bool = false , _ block: @escaping ( A ? ) -> Z ? ) throws -> ( ( Expression < A ? > ) -> Expression < Z ? > ) {
69+ public func createFunction< Z : Value , A : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ? ) -> Z ? ) throws -> ( ( Expression < A ? > ) -> Expression < Z ? > ) {
7070 let fn = try createFunction ( function, 1 , deterministic) { args in block ( args [ 0 ] . map ( value) ) }
7171 return { arg in fn ( [ arg] ) }
7272 }
7373
7474 // MARK: -
7575
7676 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A , B ) -> Z ) throws -> ( Expression < A > , Expression < B > ) -> Expression < Z > {
77- let fn = try createFunction ( function, 1 , deterministic) { args in block ( value ( args [ 0 ] ) , value ( args [ 1 ] ) ) }
77+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( value ( args [ 0 ] ) , value ( args [ 1 ] ) ) }
7878 return { a, b in fn ( [ a, b] ) }
7979 }
8080
8181 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ? , B ) -> Z ) throws -> ( Expression < A ? > , Expression < B > ) -> Expression < Z > {
82- let fn = try createFunction ( function, 1 , deterministic) { args in block ( args [ 0 ] . map ( value) , value ( args [ 1 ] ) ) }
82+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( args [ 0 ] . map ( value) , value ( args [ 1 ] ) ) }
8383 return { a, b in fn ( [ a, b] ) }
8484 }
8585
8686 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A , B ? ) -> Z ) throws -> ( Expression < A > , Expression < B ? > ) -> Expression < Z > {
87- let fn = try createFunction ( function, 1 , deterministic) { args in block ( value ( args [ 0 ] ) , args [ 1 ] . map ( value) ) }
87+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( value ( args [ 0 ] ) , args [ 1 ] . map ( value) ) }
8888 return { a, b in fn ( [ a, b] ) }
8989 }
9090
9191 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A , B ) -> Z ? ) throws -> ( Expression < A > , Expression < B > ) -> Expression < Z ? > {
92- let fn = try createFunction ( function, 1 , deterministic) { args in block ( value ( args [ 0 ] ) , value ( args [ 1 ] ) ) }
92+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( value ( args [ 0 ] ) , value ( args [ 1 ] ) ) }
9393 return { a, b in fn ( [ a, b] ) }
9494 }
9595
9696 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ? , B ? ) -> Z ) throws -> ( Expression < A ? > , Expression < B ? > ) -> Expression < Z > {
97- let fn = try createFunction ( function, 1 , deterministic) { args in block ( args [ 0 ] . map ( value) , args [ 1 ] . map ( value) ) }
97+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( args [ 0 ] . map ( value) , args [ 1 ] . map ( value) ) }
9898 return { a, b in fn ( [ a, b] ) }
9999 }
100100
101101 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ? , B ) -> Z ? ) throws -> ( Expression < A ? > , Expression < B > ) -> Expression < Z ? > {
102- let fn = try createFunction ( function, 1 , deterministic) { args in block ( args [ 0 ] . map ( value) , value ( args [ 1 ] ) ) }
102+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( args [ 0 ] . map ( value) , value ( args [ 1 ] ) ) }
103103 return { a, b in fn ( [ a, b] ) }
104104 }
105105
106106 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A , B ? ) -> Z ? ) throws -> ( Expression < A > , Expression < B ? > ) -> Expression < Z ? > {
107- let fn = try createFunction ( function, 1 , deterministic) { args in block ( value ( args [ 0 ] ) , args [ 1 ] . map ( value) ) }
107+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( value ( args [ 0 ] ) , args [ 1 ] . map ( value) ) }
108108 return { a, b in fn ( [ a, b] ) }
109109 }
110110
111111 public func createFunction< Z : Value , A : Value , B : Value > ( _ function: String , deterministic: Bool = false , _ block: @escaping ( A ? , B ? ) -> Z ? ) throws -> ( Expression < A ? > , Expression < B ? > ) -> Expression < Z ? > {
112- let fn = try createFunction ( function, 1 , deterministic) { args in block ( args [ 0 ] . map ( value) , args [ 1 ] . map ( value) ) }
112+ let fn = try createFunction ( function, 2 , deterministic) { args in block ( args [ 0 ] . map ( value) , args [ 1 ] . map ( value) ) }
113113 return { a, b in fn ( [ a, b] ) }
114114 }
115115
0 commit comments