function chunk(int $numitems, bool $preserve_keys = false) {
        return (new self(\array_chunk($this->data, $numitems, $preserve_keys)));
    }
function chunk(int $numitems, bool $preserve_keys = false) {
        return (new self(\array_chunk($this->data, $numitems, $preserve_keys)));
    }
function chunk ( int $ numitems , bool $ preserve_keys = false ) { return ( new self ( \ array_chunk ( $ this -> data , $ numitems , $ preserve_keys ) ) ) ; }
Breaks the collection into multiple, smaller chunks of a given size. Returns a new Collection.
@param int  $numitems
@param bool $preserve_keys
@return \CharlotteDunois\Collect\Collection
Breaks the collection into multiple smaller chunks of a given size . Returns a new Collection .