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   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 348 / 367
Referenced in: [show references]

Formerly at http://tinybrain.de/1003806 & http://1003806.tinybrain.de