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

7
LINES

< > BotCompany Repo | #1031114 // replaceOneCharInString

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

Libraryless. Click here for Pure Java version (83L/1K).

sS replaceOneCharInString(S a, int idx, S b) {
  ret spliceString(a, idx, idx+1, b);
}

sS replaceOneCharInString(S a, int idx, char b) {
  ret replaceOneCharInString(a, idx, str(b));
}

Author comment

Began life as a copy of #1024383

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031114
Snippet name: replaceOneCharInString
Eternal ID of this version: #1031114/1
Text MD5: e4b3e277c584561334fe185b88037c25
Transpilation MD5: 5e402960709fe8090b4e86694142c7b0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-06 16:09:58
Source code size: 191 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 171 / 255
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)