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