1 | static HashMap listToKeysWithCalculatedValue(Iterable l, O f) { |
2 | ret listToKeysWithCalculatedValue(f, l); |
3 | } |
4 | |
5 | static HashMap listToKeysWithCalculatedValue(O f, Iterable l) { |
6 | new HashMap map; |
7 | if (l != null) for (O o : l) |
8 | map.put(o, callF(f, o)); |
9 | ret map; |
10 | } |
Began life as a copy of #1018013
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018927 |
Snippet name: | listToKeysWithCalculatedValue |
Eternal ID of this version: | #1018927/1 |
Text MD5: | bdd477e46cf696d8c04deb851029183f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-16 01:29:01 |
Source code size: | 274 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 315 / 347 |
Referenced in: | [show references] |