Libraryless. Click here for Pure Java version (2523L/16K).
static <A> int lCommonPrefix_lists(L<A> a, L<A> b) { int i = 0, n = min(l(a), l(b)); while (i < n && eq(a.get(i), b.get(i))) ++i; ret i; }
Began life as a copy of #1029206
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029262 |
Snippet name: | lCommonPrefix_lists |
Eternal ID of this version: | #1029262/1 |
Text MD5: | f1052e1ed95cf0c2a0a7bcb1b39287ab |
Transpilation MD5: | 5fb1e2e1f4214dbb40557d5ddfb1e34c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-27 19:29:38 |
Source code size: | 155 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 226 / 323 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029270 - lCommonPrefix_lists_ext #1030170 - lCommonPrefix_lists_comparator |