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

4
LINES

< > BotCompany Repo | #1011103 // replaceSuffixIC

JavaX fragment (include)

static S replaceSuffixIC(S a, S b, S s) {
  if (endsWithIC(s, a)) ret dropLast(s, l(a)) + b;
  ret s;
}

Author comment

Began life as a copy of #1011101

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011103
Snippet name: replaceSuffixIC
Eternal ID of this version: #1011103/3
Text MD5: 7a387f18b9e6857376617f0dd884a4ab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-12 20:00:19
Source code size: 106 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 464 / 491
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013805 - replaceExtension