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

9
LINES

< > BotCompany Repo | #1025632 // smartIndexOfAnyIC - index of one of multiple elements

JavaX fragment (include)

static int smartIndexOfAnyIC(LS l, int i, S... x) {
  while (i < l(l))
    if (eqicOneOf(l.get(i), x)) ret i; else ++i;
  ret l(l);
}

static int smartIndexOfAnyIC(LS l, S... x) {
  ret smartIndexOfAnyIC(l, 0, x);
}

Author comment

Began life as a copy of #1008434

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025632
Snippet name: smartIndexOfAnyIC - index of one of multiple elements
Eternal ID of this version: #1025632/1
Text MD5: 36f3d8e534f545c6d08e988c6fedc694
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-10 01:26:56
Source code size: 223 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 219 / 249
Referenced in: [show references]