1 | static S replayTextEdit(TextEdit change, S text) { |
2 | if (change == null) ret text; |
3 | ret substring(text, 0, change.startIndex) |
4 | + change.text |
5 | + substring(text, change.endIndex); |
6 | } |
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: | #1009712 |
Snippet name: | replayTextEdit |
Eternal ID of this version: | #1009712/1 |
Text MD5: | 7301165a33484e87326b660ec214258f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-14 22:50:56 |
Source code size: | 191 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 430 / 484 |
Referenced in: | [show references] |