1 | static L<S> commonSuffixListCI(L<S> a, L<S> b) { |
2 | int i = 0, nb = l(b), na = l(a), n = min(na, nb); |
3 | while (i < n && eqic(a.get(na-1-i), b.get(nb-1-i))) |
4 | ++i; |
5 | return i == nb ? b : subList(a, na-i); |
6 | } |
Began life as a copy of #1013597
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016769 |
Snippet name: | commonSuffixListCI |
Eternal ID of this version: | #1016769/3 |
Text MD5: | 282814faadf4c72e9442b6937cdd6577 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-02 12:50:05 |
Source code size: | 213 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 375 / 400 |
Version history: | 2 change(s) |
Referenced in: | [show references] |