Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1004776 // renderMapForTable

JavaX fragment (include)

static L<Map> renderMapForTable(Map map, S keyDesc, S valueDesc) {
  ret renderMapForTable(map, keyDesc, valueDesc, false);
}

static L<Map> renderMapForTable(Map map, S keyDesc, S valueDesc, bool valueFirst) {
  new L<Map> rows;
  for (O key : map.keySet()) {
    O value = map.get(key);
    rows.add(valueFirst
      ? litorderedmap(valueDesc, value, keyDesc, key)
      : litorderedmap(keyDesc, key, valueDesc, value));
  }
  ret rows;
}

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: 538 / 549
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)