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

3
LINES

< > BotCompany Repo | #1033289 // plusPrefixUnlessMinus

JavaX fragment (include)

sS plusPrefixUnlessMinus(S s) {
  ret startsWith(s, "-") ? s : "+" + s;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033289
Snippet name: plusPrefixUnlessMinus
Eternal ID of this version: #1033289/1
Text MD5: b9c0f8a15078c3766adc94f799d18ec2
Author: stefan
Category: javax / audio analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-18 10:24:39
Source code size: 75 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 177 / 195
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)