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

6
LINES

< > BotCompany Repo | #1022597 // ReplaceSuffix

JavaX fragment (include)

srecord ReplaceSuffix(S oldSuffix, S newSuffix) extends F1<S> {
  S get(S s) {
    // There are different ways to handle odd cases
    ret dropSuffix(oldSuffix, s) + newSuffix;
  }
}

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: #1022597
Snippet name: ReplaceSuffix
Eternal ID of this version: #1022597/2
Text MD5: b9cb2c72325d769662569b620414119e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-23 17:10:48
Source code size: 187 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 724
Version history: 1 change(s)
Referenced in: #1024362 - ReplaceSuffixIC
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)