<TKey, T>
public
take(int<0, max> $length): CollectionInterface<TKey, T>
Takes the first items with $length and returns them as a new collection.
$length
Number of items to take from the start
Nexus\Collection\Collection::take()