static <A, B> TreeMap<A, B> pairsToTreeMap(Collection<? extends Pair<A, B>> l) { new TreeMap<A, B> map; if (l != null) for (Pair<A, B> p : l) map.put(p.a, p.b); ret map; }
Began life as a copy of #1009021
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: | #1009583 |
Snippet name: | pairsToTreeMap - make TreeMap from collection of pairs |
Eternal ID of this version: | #1009583/2 |
Text MD5: | e01c128c5e66580a16f05d171f20e980 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-08 21:06:41 |
Source code size: | 186 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 489 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011045 - pairsToMap - make HashMap from collection of pairs #1024756 - pairsToCIMap - make ciMap from collection of pairs |