Libraryless. Click here for Pure Java version (2559L/16K).
1 | static <A> TreeSet<S> mapToCISet(IF1<A, S> f, Iterable<A> l) {
|
2 | ret mapToCISet((O) f, l); |
3 | } |
4 | |
5 | static TreeSet<S> mapToCISet(O f, Iterable l) {
|
6 | TreeSet<S> x = ciSet(); |
7 | if (l != null) for (O o : l) |
8 | addIfNotNull(x, (S) callF(f, o)); |
9 | ret x; |
10 | } |
11 | |
12 | static <A> TreeSet<S> mapToCISet(Iterable<A> l, IF1<A, S> f) {
|
13 | ret mapToCISet(f, l); |
14 | } |
Began life as a copy of #1011181
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1018022 |
| Snippet name: | mapToCISet - map function, return as CI set |
| Eternal ID of this version: | #1018022/3 |
| Text MD5: | 2ff0fbe393d25f9b99c5961cc66e38aa |
| Transpilation MD5: | 996c356ece81c3d17d412d0dbd5ad6ca |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-06 15:59:00 |
| Source code size: | 350 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 635 / 785 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |