static SS parseColonProperties(S text) { ret parseColonProperties(text, new LinkedHashMap); } static SS parseColonProperties(S text, SS map) { for (S s : tlft(text)) { int i = indexOf(s, ':'); if (i > 0) map.put(trimSubstring(s, 0, i), trimSubstring(s, i+1)); } ret map; }
Began life as a copy of #1020409
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020412 |
Snippet name: | parseColonProperties |
Eternal ID of this version: | #1020412/2 |
Text MD5: | ea28b67ff56e1a72c440c280412c2b2d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-04 01:39:39 |
Source code size: | 306 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 402 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1021242 - parseColonPropertyPairs #1021533 - parseColonProperties_withMultiLines #1028163 - parseColonEqualsProperties_tlftj |