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

6
LINES

< > BotCompany Repo | #1005245 // smartIndexOfMulti - returns l(l) if not found, searches for multiple things

JavaX fragment (include)

static <A> int smartIndexOfMulti(L l, L<A> sub, int start) {
  int i = l(l);
  for (A a : sub)
    i = min(i, smartIndexOf(l, a, start));
  ret i;
}

Author comment

Began life as a copy of #1002497

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: #1005245
Snippet name: smartIndexOfMulti - returns l(l) if not found, searches for multiple things
Eternal ID of this version: #1005245/1
Text MD5: 784521025f3039ac7955bf7e24322ba3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-26 17:07:40
Source code size: 155 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 476 / 453
Referenced in: [show references]