Libraryless. Click here for Pure Java version (2556L/16K).
sS duplicateLastChar(S s) { ret empty(s) ? s : s + last(s); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030096 |
| Snippet name: | duplicateLastChar |
| Eternal ID of this version: | #1030096/2 |
| Text MD5: | 700c2c8861568bd64b3a4d56e4cd48b9 |
| Transpilation MD5: | 6ba209e2de3da8d5baad0b102d86d5e8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-09 09:59:36 |
| Source code size: | 65 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 343 / 468 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |