1 | static LPair<S> directlyAdjacentWords(S s) { |
2 | LS tok = javaTokC(s); |
3 | LPair<S> out = new L; |
4 | for (int i = 0; i+1 < l(tok); i++) |
5 | if (isIdentifier(tok.get(i)) && isIdentifier(tok.get(i+1))) |
6 | out.add(pair(tok.get(i), tok.get(i+1))); |
7 | ret out; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018886 |
Snippet name: | directlyAdjacentWords - no punctuation between them |
Eternal ID of this version: | #1018886/3 |
Text MD5: | 7b702ff73b8902b2d9313f0bf62fd314 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-15 15:16:22 |
Source code size: | 260 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 373 |
Version history: | 2 change(s) |
Referenced in: | [show references] |