We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Reverses the order of the sequence (s. Reverse()).
public function reverse() : IOrderedEnumerable;
The new sequence.
use \System\Linq\Enumerable; $seq = Enumerable::create(['b' => 2, 'c' => 3, 'a' => 1]); foreach ($seq->reverse() as $key => $item) { // $key => 'a'; $item => 1 // $key => 'c'; $item => 3 // $key => 'b'; $item => 2 }