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

3
LINES

< > BotCompany Repo | #1013573 // plus1UnlessNegative

JavaX fragment (include)

static int plus1UnlessNegative(int i) {
  ret i < 0 ? i : i+1;
}

Author comment

Began life as a copy of #1013572

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: #1013573
Snippet name: plus1UnlessNegative
Eternal ID of this version: #1013573/1
Text MD5: 6c0108953c475402a7026e42df442a07
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-10 15:32:50
Source code size: 66 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 344
Referenced in: [show references]