1 | static S ai_fix(S s) {
|
2 | s = trim(s); |
3 | if (startsWith(s, "{") && endsWith(s, "}")) s = trim(dropFirstAndLast(s));
|
4 | ret s; |
5 | } |
Began life as a copy of #1011139
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: | #1011299 |
| Snippet name: | ai_fix |
| Eternal ID of this version: | #1011299/2 |
| Text MD5: | 89c5d44e28727d583ed01457f7026146 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-29 16:36:05 |
| Source code size: | 129 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 735 / 749 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |