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.

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

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: 194 / 245
Version history: 2 change(s)
Referenced in: [show references]