tx · A4DGfhX1J1AmexfiD64R5G9BLwwKCJBVQfUjbNu9h8BG 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7: -0.01000000 Waves 2023.03.17 15:40 [2494007] smart account 3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7 > SELF 0.00000000 Waves
{ "type": 13, "id": "A4DGfhX1J1AmexfiD64R5G9BLwwKCJBVQfUjbNu9h8BG", "fee": 1000000, "feeAssetId": null, "timestamp": 1679056928393, "version": 2, "chainId": 84, "sender": "3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7", "senderPublicKey": "CrHxACS7bWTh8cgmgqstvybmgMqR9KtDryGFt5svZhBW", "proofs": [ "2EHQQA9AQTjZV3yZwUAUjsCF2YRwvAeSEYe8daEiE8wJv8f8Gr9khFCpT3vWwF1NcEJzJkEqNZ9n67wwUafmECAc" ], "script": "base64:BgIkCAISBwoFGBgBAQgSBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIFQAIa0pzb25SZXMCB2pzb25SZXMABXF1b3RlCQCwCQEBASIBCW1ha2VGaWVsZAEJbmV4dFZhbHVlAwkAAAIJAK8CAggFCW5leHRWYWx1ZQJfMQABAgF7CQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgUFcXVvdGUIBQluZXh0VmFsdWUCXzEFBXF1b3RlAgE6CAUJbmV4dFZhbHVlAl8yAgEsCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIFBXF1b3RlCAUJbmV4dFZhbHVlAl8xBQVxdW90ZQIBOgUFcXVvdGUIBQluZXh0VmFsdWUCXzIFBXF1b3RlAgEsAQ9yZWR1Y2VyTWFrZUpTT04CBWFjY3VtCW5leHRWYWx1ZQkArAICBQVhY2N1bQkBCW1ha2VGaWVsZAEFCW5leHRWYWx1ZQEPaXRlcmF0ZU1ha2VKU09OAwZwYXJhbXMDcmVzBmxlbmd0aAMJAAACBQZsZW5ndGgAAAkAAgECDUVtcHR5ICBwYXJhbXMD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xlbgkAzAgCCQCsAgIJALACAgkAswICBQRqc29uAAEAAQIBLAUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAJQKAgUDbmlsBQNyZXMJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQENcmVhZEJ5SlNPTktleQIEanNvbgNrZXkECnZhbHVlQnlLZXkJARFyZWFkQnlLZXlJbnRlcm5hbAIFBGpzb24FA2tleQkAlAoCBQNuaWwFCnZhbHVlQnlLZXkBaQEPZGVsZXRlQnlKU09OS2V5AgRqc29uA2tleQQNJHQwMTI2MDExMjczMQkBE2RlbGV0ZUJ5S2V5SW50ZXJuYWwCBQRqc29uBQNrZXkEEWRlbGV0ZWRWYWx1ZUJ5S2V5CAUNJHQwMTI2MDExMjczMQJfMQQHbmV3SnNvbggFDSR0MDEyNjAxMTI3MzECXzIJAJQKAgUDbmlsCQCUCgIFEWRlbGV0ZWRWYWx1ZUJ5S2V5BQduZXdKc29uAL0m8Jk=", "height": 2494007, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 57Qo7rwGJeiBLcpxkEa9adVH7vK5wNTGWgpwFHZgxqp5 Next: 8zXjWngZoos5FHYVEV9CbUX2L862nkAnHZKD4rcMZRet Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let b = toUtf8String(base58'b') | |
7 | 7 | ||
8 | 8 | func c (d) = if ((take(d._1, 1) == "{")) | |
9 | - | then (((d._1 + ":") + d._2) + ",") | |
9 | + | then (((((b + d._1) + b) + ":") + d._2) + ",") | |
10 | 10 | else (((((((b + d._1) + b) + ":") + b) + d._2) + b) + ",") | |
11 | 11 | ||
12 | 12 | ||
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Callable(ao) | |
328 | - | func addToJSON ( | |
328 | + | func addToJSON (ad,ap,aq) = if ((size(ap) != size(aq))) | |
329 | 329 | then throw("ArrayKeys and ArrayValues length must be equal") | |
330 | 330 | else { | |
331 | 331 | let az = size(ap) | |
332 | 332 | let ar = fraction(1, az, 10) | |
333 | 333 | let as = (az % 10) | |
334 | - | let i = invoke(this, "makeJSONInternal", [ap, aq, ar, as, (drop(dropRight( | |
334 | + | let i = invoke(this, "makeJSONInternal", [ap, aq, ar, as, (drop(dropRight(ad, 1), 1) + ",")], nil) | |
335 | 335 | if ((i == i)) | |
336 | 336 | then $Tuple2(nil, i) | |
337 | 337 | else throw("Strict value is not equal to itself.") | |
341 | 341 | ||
342 | 342 | @Callable(ao) | |
343 | 343 | func readByJSONKey (ad,ae) = { | |
344 | - | let | |
345 | - | $Tuple2(nil, | |
344 | + | let aA = ai(ad, ae) | |
345 | + | $Tuple2(nil, aA) | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(ao) | |
351 | 351 | func deleteByJSONKey (ad,ae) = { | |
352 | - | let | |
353 | - | let | |
354 | - | let an = | |
355 | - | $Tuple2( | |
352 | + | let aB = ak(ad, ae) | |
353 | + | let aC = aB._1 | |
354 | + | let an = aB._2 | |
355 | + | $Tuple2(nil, $Tuple2(aC, an)) | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "jsonRes" | |
5 | 5 | ||
6 | 6 | let b = toUtf8String(base58'b') | |
7 | 7 | ||
8 | 8 | func c (d) = if ((take(d._1, 1) == "{")) | |
9 | - | then (((d._1 + ":") + d._2) + ",") | |
9 | + | then (((((b + d._1) + b) + ":") + d._2) + ",") | |
10 | 10 | else (((((((b + d._1) + b) + ":") + b) + d._2) + b) + ",") | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e (f,d) = (f + c(d)) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (h,i,j) = if ((j == 0)) | |
17 | 17 | then throw("Empty params") | |
18 | 18 | else if ((j == 1)) | |
19 | 19 | then { | |
20 | 20 | let k = h | |
21 | 21 | let l = size(k) | |
22 | 22 | let m = i | |
23 | 23 | func n (o,p) = if ((p >= l)) | |
24 | 24 | then o | |
25 | 25 | else e(o, k[p]) | |
26 | 26 | ||
27 | 27 | func q (o,p) = if ((p >= l)) | |
28 | 28 | then o | |
29 | 29 | else throw("List size exceeds 1") | |
30 | 30 | ||
31 | 31 | q(n(m, 0), 1) | |
32 | 32 | } | |
33 | 33 | else if ((j == 2)) | |
34 | 34 | then { | |
35 | 35 | let k = h | |
36 | 36 | let l = size(k) | |
37 | 37 | let m = i | |
38 | 38 | func n (o,p) = if ((p >= l)) | |
39 | 39 | then o | |
40 | 40 | else e(o, k[p]) | |
41 | 41 | ||
42 | 42 | func q (o,p) = if ((p >= l)) | |
43 | 43 | then o | |
44 | 44 | else throw("List size exceeds 2") | |
45 | 45 | ||
46 | 46 | q(n(n(m, 0), 1), 2) | |
47 | 47 | } | |
48 | 48 | else if ((j == 3)) | |
49 | 49 | then { | |
50 | 50 | let k = h | |
51 | 51 | let l = size(k) | |
52 | 52 | let m = i | |
53 | 53 | func n (o,p) = if ((p >= l)) | |
54 | 54 | then o | |
55 | 55 | else e(o, k[p]) | |
56 | 56 | ||
57 | 57 | func q (o,p) = if ((p >= l)) | |
58 | 58 | then o | |
59 | 59 | else throw("List size exceeds 3") | |
60 | 60 | ||
61 | 61 | q(n(n(n(m, 0), 1), 2), 3) | |
62 | 62 | } | |
63 | 63 | else if ((j == 4)) | |
64 | 64 | then { | |
65 | 65 | let k = h | |
66 | 66 | let l = size(k) | |
67 | 67 | let m = i | |
68 | 68 | func n (o,p) = if ((p >= l)) | |
69 | 69 | then o | |
70 | 70 | else e(o, k[p]) | |
71 | 71 | ||
72 | 72 | func q (o,p) = if ((p >= l)) | |
73 | 73 | then o | |
74 | 74 | else throw("List size exceeds 4") | |
75 | 75 | ||
76 | 76 | q(n(n(n(n(m, 0), 1), 2), 3), 4) | |
77 | 77 | } | |
78 | 78 | else if ((j == 5)) | |
79 | 79 | then { | |
80 | 80 | let k = h | |
81 | 81 | let l = size(k) | |
82 | 82 | let m = i | |
83 | 83 | func n (o,p) = if ((p >= l)) | |
84 | 84 | then o | |
85 | 85 | else e(o, k[p]) | |
86 | 86 | ||
87 | 87 | func q (o,p) = if ((p >= l)) | |
88 | 88 | then o | |
89 | 89 | else throw("List size exceeds 5") | |
90 | 90 | ||
91 | 91 | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) | |
92 | 92 | } | |
93 | 93 | else if ((j == 6)) | |
94 | 94 | then { | |
95 | 95 | let k = h | |
96 | 96 | let l = size(k) | |
97 | 97 | let m = i | |
98 | 98 | func n (o,p) = if ((p >= l)) | |
99 | 99 | then o | |
100 | 100 | else e(o, k[p]) | |
101 | 101 | ||
102 | 102 | func q (o,p) = if ((p >= l)) | |
103 | 103 | then o | |
104 | 104 | else throw("List size exceeds 6") | |
105 | 105 | ||
106 | 106 | q(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6) | |
107 | 107 | } | |
108 | 108 | else if ((j == 7)) | |
109 | 109 | then { | |
110 | 110 | let k = h | |
111 | 111 | let l = size(k) | |
112 | 112 | let m = i | |
113 | 113 | func n (o,p) = if ((p >= l)) | |
114 | 114 | then o | |
115 | 115 | else e(o, k[p]) | |
116 | 116 | ||
117 | 117 | func q (o,p) = if ((p >= l)) | |
118 | 118 | then o | |
119 | 119 | else throw("List size exceeds 7") | |
120 | 120 | ||
121 | 121 | q(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7) | |
122 | 122 | } | |
123 | 123 | else if ((j == 8)) | |
124 | 124 | then { | |
125 | 125 | let k = h | |
126 | 126 | let l = size(k) | |
127 | 127 | let m = i | |
128 | 128 | func n (o,p) = if ((p >= l)) | |
129 | 129 | then o | |
130 | 130 | else e(o, k[p]) | |
131 | 131 | ||
132 | 132 | func q (o,p) = if ((p >= l)) | |
133 | 133 | then o | |
134 | 134 | else throw("List size exceeds 8") | |
135 | 135 | ||
136 | 136 | q(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
137 | 137 | } | |
138 | 138 | else if ((j == 9)) | |
139 | 139 | then { | |
140 | 140 | let k = h | |
141 | 141 | let l = size(k) | |
142 | 142 | let m = i | |
143 | 143 | func n (o,p) = if ((p >= l)) | |
144 | 144 | then o | |
145 | 145 | else e(o, k[p]) | |
146 | 146 | ||
147 | 147 | func q (o,p) = if ((p >= l)) | |
148 | 148 | then o | |
149 | 149 | else throw("List size exceeds 9") | |
150 | 150 | ||
151 | 151 | q(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
152 | 152 | } | |
153 | 153 | else if ((j == 10)) | |
154 | 154 | then { | |
155 | 155 | let k = h | |
156 | 156 | let l = size(k) | |
157 | 157 | let m = i | |
158 | 158 | func n (o,p) = if ((p >= l)) | |
159 | 159 | then o | |
160 | 160 | else e(o, k[p]) | |
161 | 161 | ||
162 | 162 | func q (o,p) = if ((p >= l)) | |
163 | 163 | then o | |
164 | 164 | else throw("List size exceeds 10") | |
165 | 165 | ||
166 | 166 | q(n(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
167 | 167 | } | |
168 | 168 | else throw("The max number of parameters exceeded") | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func r (s) = { | |
172 | 172 | let t = s[0] | |
173 | 173 | let u = s[1] | |
174 | 174 | let v = s[2] | |
175 | 175 | let w = s[3] | |
176 | 176 | let x = s[4] | |
177 | 177 | let y = s[5] | |
178 | 178 | let z = s[6] | |
179 | 179 | let A = s[7] | |
180 | 180 | let B = s[8] | |
181 | 181 | let C = s[9] | |
182 | 182 | let D = removeByIndex(s, 0) | |
183 | 183 | let E = removeByIndex(D, 0) | |
184 | 184 | let F = removeByIndex(E, 0) | |
185 | 185 | let G = removeByIndex(F, 0) | |
186 | 186 | let H = removeByIndex(G, 0) | |
187 | 187 | let I = removeByIndex(H, 0) | |
188 | 188 | let J = removeByIndex(I, 0) | |
189 | 189 | let K = removeByIndex(J, 0) | |
190 | 190 | let L = removeByIndex(K, 0) | |
191 | 191 | let M = removeByIndex(L, 0) | |
192 | 192 | $Tuple2([t, u, v, w, x, y, z, A, B, C], M) | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func N (O) = if ((O == this)) | |
197 | 197 | then unit | |
198 | 198 | else throw("Only internal call") | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func P (s,F) = [$Tuple2(s[0], F[0])] | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func Q (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1])] | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func R (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2])] | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func S (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3])] | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func T (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4])] | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func U (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5])] | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func V (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6])] | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func W (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6]), $Tuple2(s[7], F[7])] | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func X (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6]), $Tuple2(s[7], F[7]), $Tuple2(s[8], F[8])] | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func Y (s,F) = [$Tuple2(s[0], F[0]), $Tuple2(s[1], F[1]), $Tuple2(s[2], F[2]), $Tuple2(s[3], F[3]), $Tuple2(s[4], F[4]), $Tuple2(s[5], F[5]), $Tuple2(s[6], F[6]), $Tuple2(s[7], F[7]), $Tuple2(s[8], F[8]), $Tuple2(s[9], F[9])] | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func Z (aa,ab,j) = if ((j == 0)) | |
232 | 232 | then throw("Empty params") | |
233 | 233 | else if ((j == 1)) | |
234 | 234 | then P(aa, ab) | |
235 | 235 | else if ((j == 2)) | |
236 | 236 | then Q(aa, ab) | |
237 | 237 | else if ((j == 3)) | |
238 | 238 | then R(aa, ab) | |
239 | 239 | else if ((j == 4)) | |
240 | 240 | then S(aa, ab) | |
241 | 241 | else if ((j == 5)) | |
242 | 242 | then T(aa, ab) | |
243 | 243 | else if ((j == 6)) | |
244 | 244 | then U(aa, ab) | |
245 | 245 | else if ((j == 7)) | |
246 | 246 | then V(aa, ab) | |
247 | 247 | else if ((j == 8)) | |
248 | 248 | then W(aa, ab) | |
249 | 249 | else if ((j == 9)) | |
250 | 250 | then X(aa, ab) | |
251 | 251 | else if ((j == 10)) | |
252 | 252 | then Y(aa, ab) | |
253 | 253 | else throw("Max number of parameters exceeded") | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func ac (ad,ae) = { | |
257 | 257 | let af = size(ae) | |
258 | 258 | let ag = value(indexOf(ad, ae)) | |
259 | 259 | let ah = valueOrElse(indexOf(ad, ",", ag), value(indexOf(ad, "}", ag))) | |
260 | 260 | $Tuple3(af, ag, ah) | |
261 | 261 | } | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func ai (ad,ae) = { | |
265 | 265 | let aj = ac(ad, ae) | |
266 | 266 | let af = aj._1 | |
267 | 267 | let ag = aj._2 | |
268 | 268 | let ah = aj._3 | |
269 | 269 | drop(take(ad, (ah - 1)), ((ag + af) + 3)) | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func ak (ad,ae) = { | |
274 | 274 | let al = ac(ad, ae) | |
275 | 275 | let af = al._1 | |
276 | 276 | let ag = al._2 | |
277 | 277 | let ah = al._3 | |
278 | 278 | let am = drop(take(ad, (ah - 1)), ((ag + af) + 3)) | |
279 | 279 | let an = if (((size(ad) - ah) == 1)) | |
280 | 280 | then (take(ad, (ag - 2)) + drop(ad, ah)) | |
281 | 281 | else (take(ad, (ag - 1)) + drop(ad, (ah + 1))) | |
282 | 282 | $Tuple2(am, an) | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | @Callable(ao) | |
287 | 287 | func makeJSONInternal (ap,aq,ar,as,i) = valueOrElse(N(ao.caller), if ((ar > 0)) | |
288 | 288 | then { | |
289 | 289 | let at = r(ap) | |
290 | 290 | let aa = at._1 | |
291 | 291 | let au = at._2 | |
292 | 292 | let av = r(aq) | |
293 | 293 | let ab = av._1 | |
294 | 294 | let aw = av._2 | |
295 | 295 | let h = Z(aa, ab, 10) | |
296 | 296 | let ax = g(h, i, 10) | |
297 | 297 | let ay = invoke(this, "makeJSONInternal", [au, aw, (ar - 1), as, ax], nil) | |
298 | 298 | if ((ay == ay)) | |
299 | 299 | then $Tuple2(nil, ay) | |
300 | 300 | else throw("Strict value is not equal to itself.") | |
301 | 301 | } | |
302 | 302 | else if ((as != 0)) | |
303 | 303 | then { | |
304 | 304 | let h = Z(ap, aq, as) | |
305 | 305 | let ax = g(h, i, as) | |
306 | 306 | $Tuple2(nil, (("{" + dropRight(ax, 1)) + "}")) | |
307 | 307 | } | |
308 | 308 | else $Tuple2(nil, (("{" + dropRight(i, 1)) + "}"))) | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(ao) | |
313 | 313 | func makeJSON (ap,aq) = if ((size(ap) != size(aq))) | |
314 | 314 | then throw("ArrayKeys and ArrayValues length must be equal") | |
315 | 315 | else { | |
316 | 316 | let az = size(ap) | |
317 | 317 | let ar = fraction(1, az, 10) | |
318 | 318 | let as = (az % 10) | |
319 | 319 | let i = invoke(this, "makeJSONInternal", [ap, aq, ar, as, ""], nil) | |
320 | 320 | if ((i == i)) | |
321 | 321 | then $Tuple2(nil, i) | |
322 | 322 | else throw("Strict value is not equal to itself.") | |
323 | 323 | } | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Callable(ao) | |
328 | - | func addToJSON ( | |
328 | + | func addToJSON (ad,ap,aq) = if ((size(ap) != size(aq))) | |
329 | 329 | then throw("ArrayKeys and ArrayValues length must be equal") | |
330 | 330 | else { | |
331 | 331 | let az = size(ap) | |
332 | 332 | let ar = fraction(1, az, 10) | |
333 | 333 | let as = (az % 10) | |
334 | - | let i = invoke(this, "makeJSONInternal", [ap, aq, ar, as, (drop(dropRight( | |
334 | + | let i = invoke(this, "makeJSONInternal", [ap, aq, ar, as, (drop(dropRight(ad, 1), 1) + ",")], nil) | |
335 | 335 | if ((i == i)) | |
336 | 336 | then $Tuple2(nil, i) | |
337 | 337 | else throw("Strict value is not equal to itself.") | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | ||
342 | 342 | @Callable(ao) | |
343 | 343 | func readByJSONKey (ad,ae) = { | |
344 | - | let | |
345 | - | $Tuple2(nil, | |
344 | + | let aA = ai(ad, ae) | |
345 | + | $Tuple2(nil, aA) | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(ao) | |
351 | 351 | func deleteByJSONKey (ad,ae) = { | |
352 | - | let | |
353 | - | let | |
354 | - | let an = | |
355 | - | $Tuple2( | |
352 | + | let aB = ak(ad, ae) | |
353 | + | let aC = aB._1 | |
354 | + | let an = aB._2 | |
355 | + | $Tuple2(nil, $Tuple2(aC, an)) | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 |
github/deemru/w8io/026f985 44.69 ms ◑