1 | // e.g. "I am <vague height>" to "I am ..." |
2 | sS angleBracketVarsToEllipsis(S s) { |
3 | LS tok = javaTokWithAngleBrackets(s); |
4 | for (int idx : indicesOfAngleBracketVars(tok)) |
5 | tok.set(idx, "..."); |
6 | ret join(tok); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024416 |
Snippet name: | angleBracketVarsToEllipsis |
Eternal ID of this version: | #1024416/2 |
Text MD5: | 84b3ba8aa3d62b695f1cf9dd628400a1 |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-11 14:15:31 |
Source code size: | 219 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 282 / 334 |
Version history: | 1 change(s) |
Referenced in: | [show references] |