Libraryless. Click here for Pure Java version (2484L/16K).
1 | sS printIfNempty(S s) {
|
2 | if (nempty(s)) print(s); |
3 | ret s; |
4 | } |
5 | |
6 | sS printIfNempty(S prefix, S s) {
|
7 | if (nempty(s)) print(prefix, s); |
8 | ret s; |
9 | } |
10 | |
11 | static <A extends Cl> A printIfNempty(A l) {
|
12 | if (nempty(l)) print(l); |
13 | ret l; |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1017213 |
| Snippet name: | printIfNempty |
| Eternal ID of this version: | #1017213/3 |
| Text MD5: | 9538cd4716c2969e05f8b0bdd0d424bd |
| Transpilation MD5: | be592682e0cbac877495b03efe2ac586 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-06-11 20:09:10 |
| Source code size: | 241 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 688 / 806 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |