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

6
LINES

< > BotCompany Repo | #1031333 // indexOfAnySubList

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2814L) is out of date.

static <A> int indexOfAnySubList(L<A> x, L<A>... y) {
  int min = l(x);
  fOr (var l : y)
    min = min(min, smartIndexOfSubList(x, l));
  ret min == l(x) ? -1 : min;
}

Author comment

Began life as a copy of #1002135

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031333
Snippet name: indexOfAnySubList
Eternal ID of this version: #1031333/3
Text MD5: 691cb0c586de810512e081c558d5df76
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-05 09:10:37
Source code size: 173 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 81 / 125
Version history: 2 change(s)
Referenced in: [show references]