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

5
LINES

< > BotCompany Repo | #1033356 // replacePrefixes

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4535L/25K).

sS replacePrefixes(S s, S... replacements) {
  for (PairS p : listToPairs(replacements))
    s = replacePrefix(p.a, p.b, s);
  ret s;
}

Author comment

Began life as a copy of #1007915

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033356
Snippet name: replacePrefixes
Eternal ID of this version: #1033356/1
Text MD5: af10c535af1a9df4f98df54951aed4c1
Transpilation MD5: bf2bcb53b8a15c908b190872dae3f1e4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-25 01:52:19
Source code size: 139 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 147 / 209
Referenced in: [show references]