sS ai_mergePunctuation(S a, S b) { a = unnull(a); b = unnull(b); if (eq(a, b)) ret a; if (empty(a)) ret b; if (empty(b)) ret a; if (isSpaces(a)) ret b; if (isSpaces(b)) ret a; ret simpleSpaces(a + b); }
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: | #1022238 |
| Snippet name: | ai_mergePunctuation |
| Eternal ID of this version: | #1022238/4 |
| Text MD5: | 602bf15a8b7f1d8d373ab7c875ded007 |
| 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-11 15:46:09 |
| Source code size: | 227 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 456 / 520 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |