Libraryless. Click here for Pure Java version (2523L/16K).
1 | static <A> int lCommonPrefix_lists(L<A> a, L<A> b) { |
2 | int i = 0, n = min(l(a), l(b)); |
3 | while (i < n && eq(a.get(i), b.get(i))) |
4 | ++i; |
5 | ret i; |
6 | } |
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: | 227 / 324 |
Referenced in: | [show references] |