@@ -12,14 +12,6 @@ public func =><T: Decodable>(lhs: Value, rhs: Int) throws -> T {
1212 return try ( lhs => rhs) . decode ( )
1313}
1414
15- public func => < T: Decodable > ( lhs: Value , rhs: Int ) throws -> [ T ] {
16- return try ( lhs => rhs) . decode ( )
17- }
18-
19- public func => < K: Decodable , V: Decodable > ( lhs: Value , rhs: Int ) throws -> [ K : V ] {
20- return try ( lhs => rhs) . decode ( )
21- }
22-
2315// MARK: Nil Chaining
2416
2517public func => ( lhs: Value ? , rhs: Int ) throws -> Value ? {
@@ -30,14 +22,6 @@ public func =><T: Decodable>(lhs: Value?, rhs: Int) throws -> T? {
3022 return try ( lhs => rhs) ? . decode ( )
3123}
3224
33- public func => < T: Decodable > ( lhs: Value ? , rhs: Int ) throws -> [ T ] ? {
34- return try ( lhs => rhs) ? . decode ( )
35- }
36-
37- public func => < K: Decodable , V: Decodable > ( lhs: Value ? , rhs: Int ) throws -> [ K : V ] ? {
38- return try ( lhs => rhs) ? . decode ( )
39- }
40-
4125// MARK: - Array (Accept Null) -
4226
4327public func =>? ( lhs: Value , rhs: Int ) throws -> Value ? {
@@ -48,14 +32,6 @@ public func =>?<T: Decodable>(lhs: Value, rhs: Int) throws -> T? {
4832 return try ( lhs =>? rhs) ? . decode ( )
4933}
5034
51- public func =>? < T: Decodable > ( lhs: Value , rhs: Int ) throws -> [ T ] ? {
52- return try ( lhs =>? rhs) ? . decode ( )
53- }
54-
55- public func =>? < K: Decodable , V: Decodable > ( lhs: Value , rhs: Int ) throws -> [ K : V ] ? {
56- return try ( lhs =>? rhs) ? . decode ( )
57- }
58-
5935// MARK: Nil Chaining
6036
6137public func =>? ( lhs: Value ? , rhs: Int ) throws -> Value ? {
@@ -66,14 +42,6 @@ public func =>?<T: Decodable>(lhs: Value?, rhs: Int) throws -> T? {
6642 return try ( lhs =>? rhs) ? . decode ( )
6743}
6844
69- public func =>? < T: Decodable > ( lhs: Value ? , rhs: Int ) throws -> [ T ] ? {
70- return try ( lhs =>? rhs) ? . decode ( )
71- }
72-
73- public func =>? < K: Decodable , V: Decodable > ( lhs: Value ? , rhs: Int ) throws -> [ K : V ] ? {
74- return try ( lhs =>? rhs) ? . decode ( )
75- }
76-
7745// MARK: - Array (Accept Out of Bounds or Null) -
7846
7947public func =>?? ( lhs: Value , rhs: Int ) throws -> Value ? {
@@ -84,14 +52,6 @@ public func =>??<T: Decodable>(lhs: Value, rhs: Int) throws -> T? {
8452 return try ( lhs =>?? rhs) ? . decode ( )
8553}
8654
87- public func =>?? < T: Decodable > ( lhs: Value , rhs: Int ) throws -> [ T ] ? {
88- return try ( lhs =>?? rhs) ? . decode ( )
89- }
90-
91- public func =>?? < K: Decodable , V: Decodable > ( lhs: Value , rhs: Int ) throws -> [ K : V ] ? {
92- return try ( lhs =>?? rhs) ? . decode ( )
93- }
94-
9555// MARK: Nil Chaining
9656
9757public func =>?? ( lhs: Value ? , rhs: Int ) throws -> Value ? {
@@ -102,14 +62,6 @@ public func =>??<T: Decodable>(lhs: Value?, rhs: Int) throws -> T? {
10262 return try ( lhs =>?? rhs) ? . decode ( )
10363}
10464
105- public func =>?? < T: Decodable > ( lhs: Value ? , rhs: Int ) throws -> [ T ] ? {
106- return try ( lhs =>?? rhs) ? . decode ( )
107- }
108-
109- public func =>?? < K: Decodable , V: Decodable > ( lhs: Value ? , rhs: Int ) throws -> [ K : V ] ? {
110- return try ( lhs =>?? rhs) ? . decode ( )
111- }
112-
11365// MARK: - Dictionary -
11466
11567public func => ( lhs: Value , rhs: String ) throws -> Value {
@@ -120,14 +72,6 @@ public func =><T: Decodable>(lhs: Value, rhs: String) throws -> T {
12072 return try ( lhs => rhs) . decode ( )
12173}
12274
123- public func => < T: Decodable > ( lhs: Value , rhs: String ) throws -> [ T ] {
124- return try ( lhs => rhs) . decode ( )
125- }
126-
127- public func => < K: Decodable , V: Decodable > ( lhs: Value , rhs: String ) throws -> [ K : V ] {
128- return try ( lhs => rhs) . decode ( )
129- }
130-
13175// MARK: Nil Chaining
13276
13377public func => ( lhs: Value ? , rhs: String ) throws -> Value ? {
@@ -138,14 +82,6 @@ public func =><T: Decodable>(lhs: Value?, rhs: String) throws -> T? {
13882 return try ( lhs => rhs) ? . decode ( )
13983}
14084
141- public func => < T: Decodable > ( lhs: Value ? , rhs: String ) throws -> [ T ] ? {
142- return try ( lhs => rhs) ? . decode ( )
143- }
144-
145- public func => < K: Decodable , V: Decodable > ( lhs: Value ? , rhs: String ) throws -> [ K : V ] ? {
146- return try ( lhs => rhs) ? . decode ( )
147- }
148-
14985// MARK: - Dictionary (Accept Null) -
15086
15187public func =>? ( lhs: Value , rhs: String ) throws -> Value ? {
@@ -156,14 +92,6 @@ public func =>?<T: Decodable>(lhs: Value, rhs: String) throws -> T? {
15692 return try ( lhs =>? rhs) ? . decode ( )
15793}
15894
159- public func =>? < T: Decodable > ( lhs: Value , rhs: String ) throws -> [ T ] ? {
160- return try ( lhs =>? rhs) ? . decode ( )
161- }
162-
163- public func =>? < K: Decodable , V: Decodable > ( lhs: Value , rhs: String ) throws -> [ K : V ] ? {
164- return try ( lhs =>? rhs) ? . decode ( )
165- }
166-
16795// MARK: Nil Chaining
16896
16997public func =>? ( lhs: Value ? , rhs: String ) throws -> Value ? {
@@ -174,14 +102,6 @@ public func =>?<T: Decodable>(lhs: Value?, rhs: String) throws -> T? {
174102 return try ( lhs =>? rhs) ? . decode ( )
175103}
176104
177- public func =>? < T: Decodable > ( lhs: Value ? , rhs: String ) throws -> [ T ] ? {
178- return try ( lhs =>? rhs) ? . decode ( )
179- }
180-
181- public func =>? < K: Decodable , V: Decodable > ( lhs: Value ? , rhs: String ) throws -> [ K : V ] ? {
182- return try ( lhs =>? rhs) ? . decode ( )
183- }
184-
185105// MARK: - Dictionary (Accept Missing Key or Null) -
186106
187107public func =>?? ( lhs: Value , rhs: String ) throws -> Value ? {
@@ -192,14 +112,6 @@ public func =>??<T: Decodable>(lhs: Value, rhs: String) throws -> T? {
192112 return try ( lhs =>?? rhs) ? . decode ( )
193113}
194114
195- public func =>?? < T: Decodable > ( lhs: Value , rhs: String ) throws -> [ T ] ? {
196- return try ( lhs =>?? rhs) ? . decode ( )
197- }
198-
199- public func =>?? < K: Decodable , V: Decodable > ( lhs: Value , rhs: String ) throws -> [ K : V ] ? {
200- return try ( lhs =>?? rhs) ? . decode ( )
201- }
202-
203115// MARK: Nil Chaining
204116
205117public func =>?? ( lhs: Value ? , rhs: String ) throws -> Value ? {
@@ -209,11 +121,3 @@ public func =>??(lhs: Value?, rhs: String) throws -> Value? {
209121public func =>?? < T: Decodable > ( lhs: Value ? , rhs: String ) throws -> T ? {
210122 return try ( lhs =>?? rhs) ? . decode ( )
211123}
212-
213- public func =>?? < T: Decodable > ( lhs: Value ? , rhs: String ) throws -> [ T ] ? {
214- return try ( lhs =>?? rhs) ? . decode ( )
215- }
216-
217- public func =>?? < K: Decodable , V: Decodable > ( lhs: Value ? , rhs: String ) throws -> [ K : V ] ? {
218- return try ( lhs =>?? rhs) ? . decode ( )
219- }
0 commit comments