1 | static HashSet collectAsHashSet(Iterable c, S field) { |
2 | new HashSet set; |
3 | if (c != null) for (O a : c) |
4 | set.add(getOpt(a, field)); |
5 | ret set; |
6 | } |
7 | |
8 | static HashSet collectAsHashSet(S field, Iterable c) { |
9 | ret collectAsHashSet(c, field); |
10 | } |
Began life as a copy of #1002318
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: | #1017816 |
Snippet name: | collectAsHashSet |
Eternal ID of this version: | #1017816/1 |
Text MD5: | 1b1ec95876fe998d423962c0ec8662ef |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-14 21:23:52 |
Source code size: | 249 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 370 / 397 |
Referenced in: | [show references] |