static Map makeMap(O f, Collection c) { new HashMap map; for (O o : unnull(c)) { O y = callF(f, o); if (y != null) map.put(o, y); } ret map; }
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: | 628 / 627 |
Referenced in: | [show references] |