1 | static S repeatMultiReplace2(S s, S... replacements) { |
2 | if (s == null) null; |
3 | for (int i = 0; i+1 < l(replacements); i += 2) |
4 | s = repeatMultiReplace(s, replacements[i], replacements[i+1]); |
5 | ret s; |
6 | } |
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: | 459 / 502 |
Referenced in: | [show references] |