1 | static IterableIterator<S> sentencePrefixes_notEmpty_rev(fS sentence) { |
2 | fL<S> tok = dropLast(javaTok(sentence)); |
3 | ret iff(new F0 { |
4 | int i = l(tok); |
5 | |
6 | public O get() { |
7 | if (i <= 0) ret endMarker(); |
8 | S s = joinSubList(tok, 0, i); |
9 | i -= 2; |
10 | ret s; |
11 | } |
12 | }); |
13 | } |
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: | 348 / 373 |
Referenced in: | [show references] |