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

6
LINES

< > BotCompany Repo | #1006860 // repeatMultiReplace2 - repeatMultiReplace in different order (string by string)

JavaX fragment (include)

static S repeatMultiReplace2(S s, S... replacements) {
  if (s == null) null;
  for (int i = 0; i+1 < l(replacements); i += 2)
    s = repeatMultiReplace(s, replacements[i], replacements[i+1]);
  ret s;
}

Author comment

Began life as a copy of #1006858

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: #1006860
Snippet name: repeatMultiReplace2 - repeatMultiReplace in different order (string by string)
Eternal ID of this version: #1006860/1
Text MD5: 2fc84ffe5e498b2498f163d17ef1896a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-10 19:54:57
Source code size: 209 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 386 / 431
Referenced in: [show references]