static S asteriskPartsOnly(S s) { L<S> tok = javaTokC(s); replaceSubList(tok, ll("*", "*"), ll("*")); new L<S> words; int i = 0; while ((i = indexOf(tok, "*", i)) >= 0) { int j = indexOf(tok, "*", ++i); if (j < 0) break; words.addAll(subList(tok, i, j)); i = j+1; } ret joinWithSpace(words); }
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: | #1008378 |
Snippet name: | asteriskPartsOnly |
Eternal ID of this version: | #1008378/1 |
Text MD5: | c245a011c5dd77010713325ae153a7ce |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-10 01:11:18 |
Source code size: | 335 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 546 / 562 |
Referenced in: | [show references] |