Transpiled version (2768L) is out of date.
1 | static <A, B, C> LinkedHashMap<A, B> lambdaMapLike mapSortedByFunctionOnKey(IF1<A, C> f, Map<A, B> map) { |
2 | L<A> l = new ArrayList(map.keySet()); |
3 | sortInPlaceByCalculatedField(l, f); |
4 | new LinkedHashMap<A, B> map2; |
5 | for (A a : l) |
6 | map2.put(a, map.get(a)); |
7 | ret map2; |
8 | } |
Began life as a copy of #1029622
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031033 |
Snippet name: | mapSortedByFunctionOnKey |
Eternal ID of this version: | #1031033/5 |
Text MD5: | ce2366c127f61ee7251d5d3ebe4da3d9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-24 05:43:59 |
Source code size: | 281 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 145 / 216 |
Version history: | 4 change(s) |
Referenced in: | [show references] |