1 | srecord ReplaceSuffix(S oldSuffix, S newSuffix) extends F1<S> {
|
2 | S get(S s) {
|
3 | // There are different ways to handle odd cases |
4 | ret dropSuffix(oldSuffix, s) + newSuffix; |
5 | } |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022597 |
| Snippet name: | ReplaceSuffix |
| Eternal ID of this version: | #1022597/2 |
| Text MD5: | b9cb2c72325d769662569b620414119e |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-23 17:10:48 |
| Source code size: | 187 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 495 / 945 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |