tx · 944Q6bVY411BFxJxp62Chfe3hiF6EbN5yzhVJS5SXVC

3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn:  -0.01500000 Waves

2023.03.23 16:45 [2502727] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves

{ "type": 13, "id": "944Q6bVY411BFxJxp62Chfe3hiF6EbN5yzhVJS5SXVC", "fee": 1500000, "feeAssetId": null, "timestamp": 1679579213712, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "3j64czmQTwUeVDkE524Zpk61U6arqYE82PiKiKYTS91BfBjohzi66guTb83AiMJMTofC2YKDZfgvTeNzh3d74L15" ], "script": "base64:BgJHCAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgQKAggBEgMKAQgSBgoECAEBARIECgIBARIDCgEBEgAcAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQERQGV4dHJOYXRpdmUoMTA1NykBAgx0b2tlblBheW1lbnQAEXRva2VuUGF5bWVudEFzc2V0CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAOwHAQkBEUBleHRyTmF0aXZ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MQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIJAQUkZjFfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAUDbmlsALc9s9o=", "height": 2502727, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RDLkkdg4hC2UYNczaLqtfMig5EzLxtNBqPKnRSaeSXV Next: FxkxnAMEpxnVhXpNnf3Wcqz3gTo1GEm1TT3dMQEJ6LUh Diff:
OldNewDifferences
8282 let current = $t025422592._2
8383 let maxCount = $t025422592._3
8484 let lendId = $t025422592._4
85- if ((maxCount >= current))
85+ if ((maxCount > current))
8686 then $Tuple4((deletions :+ DeleteEntry(((("lend-rent-" + lendId) + "-") + toString(current)))), (current + 1), maxCount, lendId)
8787 else accum
8888 }
9898
9999
100100 func reducerTest (accum,next) = {
101- let $t032213271 = accum
102- let deletions = $t032213271._1
103- let current = $t032213271._2
104- let maxCount = $t032213271._3
105- let lendId = $t032213271._4
101+ let $t032203270 = accum
102+ let deletions = $t032203270._1
103+ let current = $t032203270._2
104+ let maxCount = $t032203270._3
105+ let lendId = $t032203270._4
106106 if ((maxCount > current))
107107 then $Tuple4((deletions :+ ((("lend-rent-" + lendId) + "-") + toString(current))), (current + 1), maxCount, lendId)
108108 else $Tuple4(deletions, current, maxCount, lendId)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let collectionName = getStringValue("collectionName")
55
66 let symbol = getStringValue("symbol")
77
88 let description = getStringValue("description")
99
1010 let totalAmount = getIntegerValue("totalAmount")
1111
1212 let baseURI = getStringValue("baseURI")
1313
1414 let dAppJson = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7"))
1515
1616 let tokenPayment = getBinaryValue("tokenPayment")
1717
1818 let tokenPaymentAsset = valueOrErrorMessage(assetInfo(getBinaryValue("tokenPayment")), "token payment asset doesn't connect")
1919
2020 let lendCount = getIntegerValue("lendCount")
2121
2222 let lendCurrentCount = getIntegerValue("lendCurrentCount")
2323
2424 let hundredList = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
2525
2626 func parseIdtoAsset (assetId) = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Can't find asset by asset id")
2727
2828
2929 func transferOrNot (to,amount,assetId) = if ((to == this))
3030 then StringEntry("smth", "smth")
3131 else ScriptTransfer(to, amount, assetId)
3232
3333
3434 func getLendJson (lendId) = {
3535 let lendIdString = toString(lendId)
3636 getStringValue(("lend-" + lendIdString))
3737 }
3838
3939
4040 func getKey (lendJson,key) = {
4141 let timeUnitSeconds = {
4242 let @ = invoke(dAppJson, "readByJSONKey", [lendJson, key], nil)
4343 if ($isInstanceOf(@, "String"))
4444 then @
4545 else throw(($getType(@) + " couldn't be cast to String"))
4646 }
4747 if ((timeUnitSeconds == timeUnitSeconds))
4848 then timeUnitSeconds
4949 else throw("Strict value is not equal to itself.")
5050 }
5151
5252
5353 func getRentCount (lendId) = {
5454 let lendIdString = toString(lendId)
5555 getIntegerValue(("lend-rentCount-" + lendIdString))
5656 }
5757
5858
5959 func calcLendCost (lendId,timeUnitSeconds) = {
6060 let lendJson = getLendJson(lendId)
6161 let timeUnitPriceString = getKey(lendJson, "timeUnitPrice")
6262 if ((timeUnitPriceString == timeUnitPriceString))
6363 then {
6464 let timeUnitPrice = parseIntValue(timeUnitPriceString)
6565 (timeUnitSeconds * timeUnitPrice)
6666 }
6767 else throw("Strict value is not equal to itself.")
6868 }
6969
7070
7171 func getLendCost (lendId) = valueOrElse(getInteger(("lend-cost-" + toString(lendId))), 0)
7272
7373
7474 func onlyInternal (caller) = if ((caller == this))
7575 then unit
7676 else throw("Only internal call")
7777
7878
7979 func reducerGetDeleteEntry (accum,next) = {
8080 let $t025422592 = accum
8181 let deletions = $t025422592._1
8282 let current = $t025422592._2
8383 let maxCount = $t025422592._3
8484 let lendId = $t025422592._4
85- if ((maxCount >= current))
85+ if ((maxCount > current))
8686 then $Tuple4((deletions :+ DeleteEntry(((("lend-rent-" + lendId) + "-") + toString(current)))), (current + 1), maxCount, lendId)
8787 else accum
8888 }
8989
9090
9191 func reducerConcatLists (accum,next) = (accum :+ next)
9292
9393
9494 func reducerConcatListsString (accum,next) = (accum :+ next)
9595
9696
9797 func reducerListToString (accum,next) = ((accum + "-") + next)
9898
9999
100100 func reducerTest (accum,next) = {
101- let $t032213271 = accum
102- let deletions = $t032213271._1
103- let current = $t032213271._2
104- let maxCount = $t032213271._3
105- let lendId = $t032213271._4
101+ let $t032203270 = accum
102+ let deletions = $t032203270._1
103+ let current = $t032203270._2
104+ let maxCount = $t032203270._3
105+ let lendId = $t032203270._4
106106 if ((maxCount > current))
107107 then $Tuple4((deletions :+ ((("lend-rent-" + lendId) + "-") + toString(current))), (current + 1), maxCount, lendId)
108108 else $Tuple4(deletions, current, maxCount, lendId)
109109 }
110110
111111
112112 func checkAssetOwner (caller,assetId) = if ((assetBalance(caller, fromBase58String(assetId)) == 1))
113113 then unit
114114 else throw("Only asset owner")
115115
116116
117117 func checkPayment (payments,amount) = if ((payments[0].amount >= amount))
118118 then unit
119119 else throw("amount less then need")
120120
121121
122122 func checkAssetExists (assetId) = if (valueOrElse(getBoolean(assetId), false))
123123 then throw("this token already use")
124124 else unit
125125
126126
127127 func checkLendOwner (caller,lendId) = if ((getKey(getLendJson(lendId), "owner") != toString(caller)))
128128 then throw("you haven't perms")
129129 else unit
130130
131131
132132 @Callable(i)
133133 func setString (_key,_value) = valueOrElse(onlyInternal(i.caller), [StringEntry(_key, _value)])
134134
135135
136136
137137 @Callable(i)
138138 func setInt (_key,_value) = valueOrElse(onlyInternal(i.caller), [IntegerEntry(_key, _value)])
139139
140140
141141
142142 @Callable(i)
143143 func deleteEntry (_key) = valueOrElse(onlyInternal(i.caller), [DeleteEntry(_key)])
144144
145145
146146
147147 @Callable(i)
148148 func init (_collectionName,_symbol,_description,_baseURI) = valueOrElse(onlyInternal(i.caller), [StringEntry("collectionName", _collectionName), StringEntry("symbol", _symbol), StringEntry("description", _description), IntegerEntry("totalAmount", 0), StringEntry("baseURI", _baseURI)])
149149
150150
151151
152152 @Callable(i)
153153 func setUser (assetId,user,expires) = {
154154 let res = invoke(dAppJson, "makeJSON", [["user", "expires"], [user, expires]], nil)
155155 if ((res == res))
156156 then $Tuple2([StringEntry(("userOf-" + assetId), {
157157 let @ = res
158158 if ($isInstanceOf(@, "String"))
159159 then @
160160 else throw(($getType(@) + " couldn't be cast to String"))
161161 })], res)
162162 else throw("Strict value is not equal to itself.")
163163 }
164164
165165
166166
167167 @Callable(i)
168168 func setTokenPayment (assetBinary) = valueOrElse(onlyInternal(i.caller), [BinaryEntry("tokenPayment", assetBinary)])
169169
170170
171171
172172 @Callable(i)
173173 func mintTokens (to,amount) = {
174174 let reisue = Reissue(tokenPayment, amount, true)
175175 let toAddress = Address(fromBase58String(to))
176176 let transfer = transferOrNot(toAddress, amount, tokenPayment)
177177 if ((transfer == transfer))
178178 then [transfer, reisue]
179179 else throw("Strict value is not equal to itself.")
180180 }
181181
182182
183183
184184 @Callable(i)
185185 func mintNFT (to) = {
186186 let tokenId = (totalAmount + 1)
187187 let tokenIdString = toString(tokenId)
188188 let preName = ((symbol + "#") + tokenIdString)
189189 let name = if ((16 >= size(preName)))
190190 then preName
191191 else tokenIdString
192192 let tokenURI = (baseURI + tokenIdString)
193193 let json = {
194194 let @ = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], nil)
195195 if ($isInstanceOf(@, "String"))
196196 then @
197197 else throw(($getType(@) + " couldn't be cast to String"))
198198 }
199199 let asset = Issue(name, json, 1, 0, false, unit, height)
200200 let assetId = calculateAssetId(asset)
201201 let toAddress = Address(fromBase58String(to))
202202 let transfer = transferOrNot(toAddress, 1, assetId)
203203 if ((transfer == transfer))
204204 then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
205205 else throw("Strict value is not equal to itself.")
206206 }
207207
208208
209209
210210 @Callable(i)
211211 func initLend (assetId,timeUnitSeconds,timeUnitPrice,timeUnitCount) = valueOrElse(checkAssetOwner(i.caller, assetId), valueOrElse(checkAssetExists(assetId), {
212212 let asset = parseIdtoAsset(assetId)
213213 let tokenURI = {
214214 let @ = invoke(dAppJson, "readByJSONKey", [asset.description, "tokenURI"], nil)
215215 if ($isInstanceOf(@, "String"))
216216 then @
217217 else throw(($getType(@) + " couldn't be cast to String"))
218218 }
219219 if ((tokenURI == tokenURI))
220220 then {
221221 let lendJson = {
222222 let @ = invoke(dAppJson, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", assetId, tokenURI, toString(i.caller), toString(timeUnitSeconds), toString(timeUnitPrice), toString(timeUnitCount), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (timeUnitSeconds * timeUnitCount))), "0", "0"]], nil)
223223 if ($isInstanceOf(@, "String"))
224224 then @
225225 else throw(($getType(@) + " couldn't be cast to String"))
226226 }
227227 if ((lendJson == lendJson))
228228 then {
229229 let lendIdString = toString(lendCount)
230230 [IntegerEntry("lendCount", (lendCount + 1)), IntegerEntry("lendCurrentCount", (lendCurrentCount + 1)), IntegerEntry(("lend-rentCount-" + lendIdString), 0), StringEntry(("lend-" + lendIdString), lendJson), BooleanEntry(assetId, true)]
231231 }
232232 else throw("Strict value is not equal to itself.")
233233 }
234234 else throw("Strict value is not equal to itself.")
235235 }))
236236
237237
238238
239239 @Callable(i)
240240 func initRent (lendId,timeUnitCount) = valueOrElse(checkPayment(i.payments, calcLendCost(lendId, timeUnitCount)), {
241241 let lendIdString = toString(lendId)
242242 let lendJson = getStringValue(("lend-" + lendIdString))
243243 let rentId = getRentCount(lendId)
244244 let rentIdString = toString(rentId)
245245 let timeUnitSeconds = {
246246 let @ = invoke(dAppJson, "readByJSONKey", [lendJson, "timeUnitSeconds"], nil)
247247 if ($isInstanceOf(@, "String"))
248248 then @
249249 else throw(($getType(@) + " couldn't be cast to String"))
250250 }
251251 if ((timeUnitSeconds == timeUnitSeconds))
252252 then {
253253 let timeUnitSecondsInt = parseIntValue(timeUnitSeconds)
254254 if ((timeUnitSecondsInt == timeUnitSecondsInt))
255255 then {
256256 let rentJson = {
257257 let @ = invoke(dAppJson, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(i.caller), toString(timeUnitCount), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (timeUnitSecondsInt * timeUnitCount))), "0"]], nil)
258258 if ($isInstanceOf(@, "String"))
259259 then @
260260 else throw(($getType(@) + " couldn't be cast to String"))
261261 }
262262 if ((rentJson == rentJson))
263263 then [IntegerEntry(("lend-rentCount-" + lendIdString), (rentId + 1)), StringEntry(((("lend-rent-" + lendIdString) + "-") + rentIdString), rentJson), IntegerEntry(("lend-cost-" + lendIdString), (calcLendCost(lendId, timeUnitCount) + getLendCost(lendId)))]
264264 else throw("Strict value is not equal to itself.")
265265 }
266266 else throw("Strict value is not equal to itself.")
267267 }
268268 else throw("Strict value is not equal to itself.")
269269 })
270270
271271
272272
273273 @Callable(i)
274274 func closeLend (lendId) = valueOrElse(checkLendOwner(i.caller, lendId), {
275275 let lendIdString = toString(lendId)
276276 let rentCount = getIntegerValue(("lend-rentCount-" + lendIdString))
277277 let deleteEntryList = ( let $l = hundredList
278278 let $s = size($l)
279279 let $acc0 = $Tuple4(nil, 0, rentCount, lendIdString)
280280 func $f0_1 ($a,$i) = if (($i >= $s))
281281 then $a
282282 else reducerGetDeleteEntry($a, $l[$i])
283283
284284 func $f0_2 ($a,$i) = if (($i >= $s))
285285 then $a
286286 else throw("List size exceeds 100")
287287
288288 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100))._1
289289 let assetId = getKey(getLendJson(lendId), "assetId")
290290 let txListRaw = [BooleanEntry(assetId, false), DeleteEntry(("lend-" + lendIdString)), DeleteEntry(("lend-rentCount-" + lendIdString)), DeleteEntry(("lend-cost-" + lendIdString)), IntegerEntry("lendCurrentCount", (lendCurrentCount - 1)), ScriptTransfer(i.caller, getLendCost(lendId), tokenPayment)]
291291 let txList = {
292292 let $l = txListRaw
293293 let $s = size($l)
294294 let $acc0 = deleteEntryList
295295 func $f1_1 ($a,$i) = if (($i >= $s))
296296 then $a
297297 else reducerConcatLists($a, $l[$i])
298298
299299 func $f1_2 ($a,$i) = if (($i >= $s))
300300 then $a
301301 else throw("List size exceeds 100")
302302
303303 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
304304 }
305305 txList
306306 })
307307
308308
309309
310310 @Callable(i)
311311 func test () = {
312312 let data = ["1", "2", "3"]
313313 let list = ( let $l = hundredList
314314 let $s = size($l)
315315 let $acc0 = $Tuple4(data, 0, 5, "5")
316316 func $f0_1 ($a,$i) = if (($i >= $s))
317317 then $a
318318 else reducerTest($a, $l[$i])
319319
320320 func $f0_2 ($a,$i) = if (($i >= $s))
321321 then $a
322322 else throw("List size exceeds 100")
323323
324324 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100))._1
325325 [StringEntry("Debug", {
326326 let $l = list
327327 let $s = size($l)
328328 let $acc0 = ""
329329 func $f1_1 ($a,$i) = if (($i >= $s))
330330 then $a
331331 else reducerListToString($a, $l[$i])
332332
333333 func $f1_2 ($a,$i) = if (($i >= $s))
334334 then $a
335335 else throw("List size exceeds 100")
336336
337337 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
338338 })]
339339 }
340340
341341

github/deemru/w8io/026f985 
52.95 ms