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

8
LINES

< > BotCompany Repo | #1024362 // ReplaceSuffixIC

JavaX fragment (include)

srecord ReplaceSuffixIC(S oldSuffix, S newSuffix) extends F1<S> {
  S get(S s) {
    // There are different ways to handle odd cases
    ret dropSuffixIC(oldSuffix, s) + newSuffix;
  }
  
  toString { ret sfu(this); }
}

Author comment

Began life as a copy of #1022597

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024362
Snippet name: ReplaceSuffixIC
Eternal ID of this version: #1024362/2
Text MD5: a0b2187dda59df8ef8f2c99500eb1e66
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-07 00:56:15
Source code size: 226 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 555
Version history: 1 change(s)
Referenced in: [show references]