Fix issue 23362: Permutations should be a forward range.

This commit is contained in:
james 2022-09-23 22:39:15 +02:00
parent cd42a6a81f
commit 8744064c6f

View file

@ -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);
}
}