mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Fix issue 23362: Permutations should be a forward range.
This commit is contained in:
parent
cd42a6a81f
commit
8744064c6f
1 changed files with 3 additions and 6 deletions
|
@ -7956,13 +7956,10 @@ if (isRandomAccessRange!Range && hasLength!Range)
|
|||
|
||||
next(2);
|
||||
}
|
||||
static if (isForwardRange!Range)
|
||||
/// Returns: an independent copy of the purmations range.
|
||||
auto save()
|
||||
{
|
||||
///
|
||||
auto save()
|
||||
{
|
||||
return typeof(this)(_indices.dup, _state.dup, _r.save, _empty);
|
||||
}
|
||||
return typeof(this)(_indices.dup, _state.dup, _r.save, _empty);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue