1 | static TreeSet<S> collectInCISet(Iterable c, S field) { |
2 | TreeSet<S> set = ciSet(); |
3 | for (O a : c) { |
4 | O val = getOpt(a, field); |
5 | if (val cast S) |
6 | set.add(val); |
7 | } |
8 | ret set; |
9 | } |
10 | |
11 | static TreeSet<S> collectInCISet(S field, Iterable c) { |
12 | ret collectInCISet(c, field); |
13 | } |
Began life as a copy of #1002504
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: | #1018020 |
Snippet name: | collectInCISet |
Eternal ID of this version: | #1018020/4 |
Text MD5: | a9b500bece9943350f529e8458fa41ed |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-26 15:47:13 |
Source code size: | 291 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 485 / 521 |
Version history: | 3 change(s) |
Referenced in: | [show references] |