Libraryless. Click here for Pure Java version (141L/1K).
1 | static Set<S> joinCISets(Collection<S>... l) { |
2 | Set<S> set = ciSet(); |
3 | for (Collection<S> o : l) |
4 | if (o != null) |
5 | set.addAll(o); |
6 | ret set; |
7 | } |
8 | |
9 | static Set<S> joinCISets(Iterable<? extends Cl<S>> l) { |
10 | Set<S> set = ciSet(); |
11 | if (l != null) for (Collection<S> o : l) |
12 | if (o != null) |
13 | set.addAll(o); |
14 | ret set; |
15 | } |
Began life as a copy of #1003110
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1021329 |
Snippet name: | joinCISets |
Eternal ID of this version: | #1021329/3 |
Text MD5: | fd5a96a4d8f2c53ef94406fbc6b6edbd |
Transpilation MD5: | 0e7484d40cb38e9579295764ad2f390a |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-24 22:07:33 |
Source code size: | 342 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 421 |
Version history: | 2 change(s) |
Referenced in: | [show references] |