Transpiled version (2534L) is out of date.
static Substring joinSubstringObjects(Iterable<Substring> l) { Iterator<Substring> it = iterator(l); if (!it.hasNext()) null; Substring s = it.next(); while (it.hasNext()) { Substring b = it.next(); if (s.s != b.s) fail("Substrings have different base string"); if (s.endIndex() != b.startIndex()) fail("Substrings don't fit: " + s.range() + " / " + b.range()); s = Substring(s.s, s.startIndex(), s.length()+b.length()); } ret s; }
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: | #1028131 |
Snippet name: | joinSubstringObjects |
Eternal ID of this version: | #1028131/2 |
Text MD5: | 67134b3a801bc3ea5324ba4a727d48e4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-25 00:57:21 |
Source code size: | 470 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 179 / 259 |
Version history: | 1 change(s) |
Referenced in: | [show references] |