Libraryless. Click here for Pure Java version (2546L/16K).
1 | static <A> Set<A> joinSets(Cl<A>... l) { |
2 | Set<A> set = similarEmptySet(first(l)); |
3 | for (Cl<A> o : l) |
4 | if (o != null) |
5 | set.addAll(o); |
6 | ret set; |
7 | } |
Began life as a copy of #1001899
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003110 |
Snippet name: | joinSets - uses similar set to first one passed, or HashSet by default |
Eternal ID of this version: | #1003110/5 |
Text MD5: | 01c31443e222dd78b2ff8c61137ba4f7 |
Transpilation MD5: | 61e8568cc4f1682de2f118ebec5f2fc9 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-18 19:11:22 |
Source code size: | 161 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 743 / 843 |
Version history: | 4 change(s) |
Referenced in: | [show references] |