reverse

Reverses elements in a range

void
reverse
(
Range
)
(
ref Range range
)
if (
from!"std.range".isBidirectionalRange!Range &&
!from!"std.range".isRandomAccessRange!Range
&&
from!"std.range".hasSwappableElements!Range
||
(
from!"std.range".isRandomAccessRange!Range &&
from!"std.range".hasLength!Range
)
)

Parameters

range
Type: Range

the range to reverse

Meta

Since

0.0.1