1 | static L<Map> renderMapForTable(Map map, S keyDesc, S valueDesc) { |
2 | ret renderMapForTable(map, keyDesc, valueDesc, false); |
3 | } |
4 | |
5 | static L<Map> renderMapForTable(Map map, S keyDesc, S valueDesc, bool valueFirst) { |
6 | new L<Map> rows; |
7 | for (O key : map.keySet()) { |
8 | O value = map.get(key); |
9 | rows.add(valueFirst |
10 | ? litorderedmap(valueDesc, value, keyDesc, key) |
11 | : litorderedmap(keyDesc, key, valueDesc, value)); |
12 | } |
13 | ret rows; |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004776 |
Snippet name: | renderMapForTable |
Eternal ID of this version: | #1004776/1 |
Text MD5: | e28ce72f8a4dba8f84d69e20bc9eafe9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-09-15 19:16:53 |
Source code size: | 453 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 539 / 551 |
Referenced in: | [show references] |