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

10
LINES

< > BotCompany Repo | #1008376 // mapKeysAndValues_litOrderedMap

JavaX fragment (include)

static Map mapKeysAndValues_litOrderedMap(O f, Map map) {
  ret mapKeysAndValues_litOrderedMap(f, f, map);
}

static Map mapKeysAndValues_litOrderedMap(O fKey, O fValue, Map map) {
  new LinkedHashMap m;
  for (O key : keys(map))
    m.put(callF(fKey, key), callF(fValue, map.get(key)));
  ret m;
}

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: #1008376
Snippet name: mapKeysAndValues_litOrderedMap
Eternal ID of this version: #1008376/3
Text MD5: 3aaee17979dc903f7d6d0c2e0428d4ee
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-10 01:12:05
Source code size: 307 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 542 / 529
Version history: 2 change(s)
Referenced in: [show references]