Libraryless. Click here for Pure Java version (2204L/14K).
1 | static <A> TreeSet<A> concatListsToTreeSet(Collection<? extends Cl<A>> lists) {
|
2 | new TreeSet<A> l; |
3 | for (Cl<A> list : lists) |
4 | if (list != null) |
5 | l.addAll(list); |
6 | ret l; |
7 | } |
8 | |
9 | static <A> TreeSet<A> concatListsToTreeSet(Cl<A>... lists) {
|
10 | ret concatListsToTreeSet(asList(lists)); |
11 | } |
Began life as a copy of #1022566
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027506 |
| Snippet name: | concatListsToTreeSet |
| Eternal ID of this version: | #1027506/5 |
| Text MD5: | bc6006472009f3f3d4aed4af140b59a1 |
| Transpilation MD5: | c6d7083cb0a1a706bd3067b68f77a448 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-03-22 16:13:03 |
| Source code size: | 298 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 380 / 495 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |