Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1017213 // printIfNempty

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2484L/16K).

sS printIfNempty(S s) {
  if (nempty(s)) print(s);
  ret s;
}

sS printIfNempty(S prefix, S s) {
  if (nempty(s)) print(prefix, s);
  ret s;
}

static <A extends Cl> A printIfNempty(A l) {
  if (nempty(l)) print(l);
  ret l;
}

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: 346 / 422
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027136 - printIf