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

6
LINES

< > BotCompany Repo | #1030170 // lCommonPrefix_lists_comparator

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

Libraryless. Click here for Pure Java version (2564L/16K).

1  
static <A> int lCommonPrefix_lists_comparator(L<A> a, L<A> b, Comparator<A> comparator) {
2  
  int i = 0, n = min(l(a), l(b));
3  
  while (i < n && eqWithComparator(comparator, a.get(i), b.get(i)))
4  
    ++i;
5  
  ret i;
6  
}

Author comment

Began life as a copy of #1029262

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030170
Snippet name: lCommonPrefix_lists_comparator
Eternal ID of this version: #1030170/1
Text MD5: fc3f16c6c06575804d5f09819426f409
Transpilation MD5: e3a143ecee37b29e1c3e1aa8f7d6d75d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-11 23:43:04
Source code size: 218 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 225
Referenced in: [show references]