Thread overview
[Issue 19642] std.range.slide!(No.withPartial) on lengthless forward range: get empty when expecting one window
Mar 07, 2019
Jon Degenhardt
Dec 17, 2022
Iain Buclaw
Apr 20, 2023
FeepingCreature
Apr 20, 2023
Dlang Bot
Apr 24, 2023
Dlang Bot
March 07, 2019
https://issues.dlang.org/show_bug.cgi?id=19642

Jon Degenhardt <jrdemail2000-dlang@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrdemail2000-dlang@yahoo.co
                   |                            |m

--- Comment #1 from Jon Degenhardt <jrdemail2000-dlang@yahoo.com> ---
Another example (encountered writing nlp code manipulating ngrams):

"ab cd".splitter(' ').slide!(No.withPartial)(2)

Should be [["ab", "cd"]], actual is [].

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19642

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
April 20, 2023
https://issues.dlang.org/show_bug.cgi?id=19642

FeepingCreature <default_357-line@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |default_357-line@yahoo.de

--- Comment #2 from FeepingCreature <default_357-line@yahoo.de> ---
Another repro:

```
assert([false, true, false]
    .chunkBy!(a => a)
    .slide!(No.withPartial)(3)
    .count == 1);
```

--
April 20, 2023
https://issues.dlang.org/show_bug.cgi?id=19642

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@FeepingCreature updated dlang/phobos pull request #8738 "Fix issue 16942: slide!(No.withPartial): Correctly handle first slide exhausting input range." fixing this issue:

- Fix issue 19642: slide!(No.withPartial): Correctly handle first slide
exhausting input range.

https://github.com/dlang/phobos/pull/8738

--
April 24, 2023
https://issues.dlang.org/show_bug.cgi?id=19642

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8738 "Fix issue 16942: slide!(No.withPartial): Correctly handle first slide exhausting input range." was merged into master:

- d78e46c2f19b7be5b2a9dd572ed779c376051036 by Mathis Beer:
  Fix issue 19642: slide!(No.withPartial): Correctly handle first slide
exhausting input range.

https://github.com/dlang/phobos/pull/8738

--