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

3
LINES

< > BotCompany Repo | #1014377 // appendNumberUnless1 (with space)

JavaX fragment (include)

static S appendNumberUnless1(S s, int i) {
  ret i == 1 ? s : s + " " + i;
}

Author comment

Began life as a copy of #1014376

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014377
Snippet name: appendNumberUnless1 (with space)
Eternal ID of this version: #1014377/2
Text MD5: a4071067764b1bf8de8aa4527c3db1d9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-08 23:27:38
Source code size: 78 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 386 / 430
Version history: 1 change(s)
Referenced in: [show references]