1 | sS commonSuffixMulti(Iterable<S> l) {
|
2 | Iterator<S> it = iterator(l); |
3 | if (!it.hasNext()) ret ""; |
4 | S s = it.next(); |
5 | while ping (it.hasNext()) {
|
6 | s = commonSuffix(s, it.next()); |
7 | if (empty(s)) break; |
8 | } |
9 | ret s; |
10 | } |
Began life as a copy of #1005052
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: | #1028015 |
| Snippet name: | commonSuffixMulti |
| Eternal ID of this version: | #1028015/1 |
| Text MD5: | e8982f7f72ccecaf9487ac9dd57caa1c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-05-03 18:26:23 |
| Source code size: | 234 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 487 / 529 |
| Referenced in: | [show references] |