Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1018886 // directlyAdjacentWords - no punctuation between them

JavaX fragment (include)

static LPair<S> directlyAdjacentWords(S s) {
  LS tok = javaTokC(s);
  LPair<S> out = new L;
  for (int i = 0; i+1 < l(tok); i++)
    if (isIdentifier(tok.get(i)) && isIdentifier(tok.get(i+1)))
      out.add(pair(tok.get(i), tok.get(i+1)));
  ret out;
}

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: 245 / 297
Version history: 2 change(s)
Referenced in: [show references]