Libraryless. Click here for Pure Java version (2757L/16K).
1 | static <A> Cl<A> concatCollections_conservative(Cl<A> a, Cl<A> b) { |
2 | if (empty(a)) ret b; |
3 | if (empty(b)) ret a; |
4 | ret concatLists(a, b); |
5 | } |
Began life as a copy of #1012066
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030887 |
Snippet name: | concatCollections_conservative - use any of the collections verbatim if the others are empty |
Eternal ID of this version: | #1030887/1 |
Text MD5: | c19d7b9f4605eec333c78dc039cae044 |
Transpilation MD5: | d48352e8e74d57ee56b6a63d617380dd |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-06 12:28:23 |
Source code size: | 144 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 222 / 321 |
Referenced in: | [show references] |