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

5
LINES

< > BotCompany Repo | #1012969 // indexOfAnyIC - index of one of multiple elements (ignoring case)

JavaX fragment (include)

static int indexOfAnyIC(L<S> l, int i, S... x) {
  while (i < l(l))
    if (eqOneOf(l.get(i), x)) ret i; else ++i;
  ret -1;
}

Author comment

Began life as a copy of #1007655

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: #1012969
Snippet name: indexOfAnyIC - index of one of multiple elements (ignoring case)
Eternal ID of this version: #1012969/1
Text MD5: 96d8f762ea9512ffdb16cd6db4acef67
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-18 23:24:02
Source code size: 130 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 465 / 501
Referenced in: [show references]