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

7
LINES

< > BotCompany Repo | #1003806 // findOneOfTheWords

JavaX fragment (include)

static S findOneOfTheWords(S s, S... words) {
  L<S> tok = nlTok(s);
  for (int i = 1; i < l(tok); i += 2)
    if (eqicOneOf(tok.get(i), words))
      ret tok.get(i);
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003806
Snippet name: findOneOfTheWords
Eternal ID of this version: #1003806/1
Text MD5: 15ea97c654ef46d5abcc4d90a2f22af0
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 19:21:11
Source code size: 184 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 686
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)