Bug 23362 – Permutations should be a forward range
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-09-23T20:30:47Z
Last change time
2022-09-26T23:05:39Z
Keywords
pull
Assigned to
No Owner
Creator
james.gray
Comments
Comment #0 by james.gray — 2022-09-23T20:30:47Z
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 by dlang-bot — 2022-09-26T03:43:11Z
@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 by dlang-bot — 2022-09-26T23:05:39Z
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