(PECL ds >= 1.0.0)
Ds\Sequence::reversed — Returns a reversed copy
Returns a reversed copy of the sequence.
This function has no parameters.
A reversed copy of the sequence.
The current instance is not affected.
Example #1 Ds\Sequence::reversed() example
$sequence = new \Ds\Vector(["a", "b", "c"]);
The above example will output something similar to:
Ds\Vector Object (  => c  => b  => a ) Ds\Vector Object (  => a  => b  => c )