1 | static <A> LinkedHashMap<A> twoElementListsToMap(LL<A> l) { |
2 | new LinkedHashMap<A> map; |
3 | if (l != null) for (L<A> x : l) |
4 | map.put(first(x), second(x)); |
5 | ret map; |
6 | } |
Began life as a copy of #1011045
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: | #1014255 |
Snippet name: | twoElementListsToMap - uses LinkedHashMap |
Eternal ID of this version: | #1014255/1 |
Text MD5: | ba1f27950d0b6dd845b25e535fae9930 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-17 17:14:23 |
Source code size: | 173 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 393 / 434 |
Referenced in: | [show references] |