1 | static S autoCalculateList(S name) { |
2 | print("Auto-calculating list: " + name); |
3 | S calc = mechList_raw(name + " | Calculation"); |
4 | calc = trimDropPrefixTrim("=", calc); |
5 | O result = javaEval(calc); |
6 | S text; |
7 | if (result instanceof Collection) |
8 | text = lines(allToString((Collection) result)); |
9 | else |
10 | text = strOrEmpty(result); |
11 | ret print(botEditMechList(name, text)); |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014087 |
Snippet name: | autoCalculateList |
Eternal ID of this version: | #1014087/5 |
Text MD5: | 7b7971c2e839438298de515c6ba5c1c0 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-15 17:33:55 |
Source code size: | 389 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 519 / 553 |
Version history: | 4 change(s) |
Referenced in: | [show references] |