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

13
LINES

< > BotCompany Repo | #1017045 // sentencePrefixes_notEmpty_rev

JavaX fragment (include)

static IterableIterator<S> sentencePrefixes_notEmpty_rev(fS sentence) {
  fL<S> tok = dropLast(javaTok(sentence));
  ret iff(new F0 {
    int i = l(tok);
    
    public O get() {
      if (i <= 0) ret endMarker();
      S s = joinSubList(tok, 0, i);
      i -= 2;
      ret s;
    }
  });
}

Author comment

Began life as a copy of #1017044

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: #1017045
Snippet name: sentencePrefixes_notEmpty_rev
Eternal ID of this version: #1017045/1
Text MD5: 709d816c8de302ab00e7814c7a0200d8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-11 13:36:40
Source code size: 303 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 346 / 370
Referenced in: [show references]