We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Takes a number of elements (s. Take()).
public function take(int $count) : IEnumerable;
The number of elements to take.
The new sequence.
use \System\Linq\Enumerable; $seq = Enumerable::fromValues(239, 5979, 1); foreach ($seq->take(2) as $item) { // [0] 239 // [1] 5979 }