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

4
LINES

< > BotCompany Repo | #1017653 // prependGlobalIDInNewLine_opt - prepend "[id: dfjsfdsf]\n\n" if not there yet

JavaX fragment (include)

1  
static S prependGlobalIDInNewLine_opt(S s) {
2  
  if (empty(s) || startsWith(s, "[id: ")) ret s;
3  
  ret prependGlobalIDInNewLine(s);
4  
}

Author comment

Began life as a copy of #1017596

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017653
Snippet name: prependGlobalIDInNewLine_opt - prepend "[id: dfjsfdsf]\n\n" if not there yet
Eternal ID of this version: #1017653/3
Text MD5: 8f3c9c6a342fa036966cf21d5ebad9a2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-31 18:09:55
Source code size: 133 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 346 / 374
Version history: 2 change(s)
Referenced in: [show references]