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

6
LINES

< > BotCompany Repo | #1023230 // ai_mergeWhitespace

JavaX fragment (include)

sS ai_mergeWhitespace(S space1, S space2) {
  if (eq(a, " ") && eq(b, " "))
    ret a;
  else
    ret a + b;
}

Author comment

Began life as a copy of #1001693

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023230
Snippet name: ai_mergeWhitespace
Eternal ID of this version: #1023230/1
Text MD5: c79358146b559ad9ee2072da8c58d3c8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-18 13:38:43
Source code size: 115 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 252 / 282
Referenced in: [show references]