Libraryless. Click here for Pure Java version (1481L/10K).
1 | static <A, B> Map<A, B> joinMaps_conservative_lhm(L<Map<A, B>> maps) { |
2 | if (empty(maps)) null; |
3 | if (l(maps) == 1) ret first(maps); |
4 | new LinkedHashMap out; |
5 | for (Map<A, B> map : maps) |
6 | putAll(out, map); |
7 | ret out; |
8 | } |
Began life as a copy of #1012066
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023305 |
Snippet name: | joinMaps_conservative_lhm - return singleton map, otherwise use LinkedHashMap to combine |
Eternal ID of this version: | #1023305/3 |
Text MD5: | 0a13f8d37048fd853b60253e049cbf56 |
Transpilation MD5: | 88c1c958a093e4fa57d8b650d083feb4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-24 19:40:52 |
Source code size: | 228 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 233 / 353 |
Version history: | 2 change(s) |
Referenced in: | [show references] |