static TreeSet<S> collectInCISet(Iterable c, S field) { TreeSet<S> set = ciSet(); for (O a : c) { O val = getOpt(a, field); if (val cast S) set.add(val); } ret set; } static TreeSet<S> collectInCISet(S field, Iterable c) { ret collectInCISet(c, field); }
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: | 484 / 519 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028091 - collectAsLines |