static <A, B> Map<A, B> lookupToMap(Map<A, B> map, Collection<A> l) { new LinkedHashMap<A, B> out; if (l != null) for (A a : l) mapPut(out, a, map.get(a)); ret out; } static <A, B> Map<A, B> lookupToMap(Collection<A> l, Map<A, B> map) { ret lookupToMap(map, l); }
Began life as a copy of #1010182
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: | #1010762 |
| Snippet name: | lookupToMap - returns ordered map |
| Eternal ID of this version: | #1010762/2 |
| Text MD5: | 50188764d5f5d5bb61b12b88348f75cb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-30 02:37:42 |
| Source code size: | 285 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 648 / 689 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |