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

8
LINES

< > BotCompany Repo | #1024362 // ReplaceSuffixIC

JavaX fragment (include)

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

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: 196 / 558
Version history: 1 change(s)
Referenced in: [show references]