Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1013596 // it_observeSuffix

JavaX fragment (include)

static IterableIterator<S> it_observeSuffix(final Iterator<S> src) {
  ret iteratorFF(new F0 {
    S suffix;
    
    O get() {
      if (!src.hasNext()) ret endMarker();
      S s = src.next();
      suffix = suffix == null ? s : commonSuffix(suffix, s);
      ret suffix;
    }
  });
}

Author comment

Began life as a copy of #1013589

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013596
Snippet name: it_observeSuffix
Eternal ID of this version: #1013596/1
Text MD5: 65ac5d78a00b3c876c708a810108386a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-11 13:20:55
Source code size: 298 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 395
Referenced in: [show references]