D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23362 - Permutations should be a forward range
Summary: Permutations should be a forward range
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-09-23 20:30 UTC by james.gray
Modified: 2022-09-26 23:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description james.gray 2022-09-23 20:30:47 UTC
According to the documentation permutations is a forward range but save is not implemented. This doesn't compile
```
import std;
    [1,2,3].permutations.save;
```
Comment 1 Dlang Bot 2022-09-26 03:43:11 UTC
@jamesragray updated dlang/phobos pull request #8580 "Make permutations into forward range." fixing this issue:

- Fix issue 23362: Permutations should be a forward range.

https://github.com/dlang/phobos/pull/8580
Comment 2 Dlang Bot 2022-09-26 23:05:39 UTC
dlang/phobos pull request #8580 "Make permutations into forward range." was merged into master:

- 8744064c6ffd5952ef406b42b020844cdec9588c by james:
  Fix issue 23362: Permutations should be a forward range.

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