1 | static Map makeMap(O f, Collection c) { |
2 | new HashMap map; |
3 | for (O o : unnull(c)) { |
4 | O y = callF(f, o); |
5 | if (y != null) |
6 | map.put(o, y); |
7 | } |
8 | ret map; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004634 |
Snippet name: | makeMap - make map from collection and function |
Eternal ID of this version: | #1004634/1 |
Text MD5: | 2628fc38dfd30aeac8054b958d449378 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-24 16:48:56 |
Source code size: | 172 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 631 / 631 |
Referenced in: | [show references] |