sbool web_labelsToUpperCase_debug; static Web web_labelsToUpperCase(Web web) { for (WebNode node : web.nodes) { if (web_labelsToUpperCase_debug) print("Node to upper: " + struct(node.labels)); web_labelsToUpperCase_noindex(node); if (web_labelsToUpperCase_debug) print("Node to upper done: " + struct(node.labels)); } web_reindex(web); web.labelsToUpper = true; ret web; } static void web_labelsToUpperCase_noindex(WebNode node) { node.labels = map(f web_labelsToUpperCase_x, node.labels); } static void web_labelsToUpperCase(WebNode node) { web_deindex(node); web_labelsToUpperCase_noindex(node); web_index(node); } static Lisp web_labelsToUpperCase_x(Lisp l) { ret nempty(l.args) ? l : lisp(toUpperCase(l.head)); }
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: | #1009972 |
Snippet name: | web_labelsToUpperCase - changes original web |
Eternal ID of this version: | #1009972/8 |
Text MD5: | 99901febbbb41a228f55c97247122854 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-02 01:29:36 |
Source code size: | 791 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 498 / 522 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010069 - web_upper - synonym of web_labelsToUpperCase - changes original web #1010080 - web_lower - labels to lower case |