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

7
LINES

< > BotCompany Repo | #1010405 // indexOfVerb

JavaX fragment (include)

static int indexOfVerb(L<S> l) {
  Set<S> verbs = knownVerbs();
  for (int i = 0; i < l(l); i++)
    if (contains(verbs, lower(l.get(i))))
      ret i;
  ret -1;
}

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: #1010405
Snippet name: indexOfVerb
Eternal ID of this version: #1010405/3
Text MD5: 7ac625a614a614b6f47e56c0ddceaec1
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-15 16:14:49
Source code size: 169 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 486
Version history: 2 change(s)
Referenced in: [show references]