static SS groupIndentedDictionary(LS l) { SS map = ciMap(); for (int i = 0; i+1 < l(l); i++) if (!startsWithSpace(l.get(i)) && startsWithSpace(l.get(i+1))) { map.put(trim(l.get(i)), autoUnindent(l.get(i+1))); ++i; } else warn("groupIndentedDictionary: bad entry at " + i); ret map; }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019355 |
Snippet name: | groupIndentedDictionary |
Eternal ID of this version: | #1019355/2 |
Text MD5: | b139cc9035887e851f1dc997db9d3d28 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-04 14:19:26 |
Source code size: | 324 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 266 / 300 |
Version history: | 1 change(s) |
Referenced in: | [show references] |