function slice(int $offset, int $limit = null, bool $preserve_keys = false) {
        $data = $this->data;
        return (new self(\array_slice($data, $offset, $limit, $preserve_keys)));
    }
function slice(int $offset, int $limit = null, bool $preserve_keys = false) {
        $data = $this->data;
        return (new self(\array_slice($data, $offset, $limit, $preserve_keys)));
    }
function slice ( int $ offset , int $ limit = null , bool $ preserve_keys = false ) { $ data = $ this -> data ; return ( new self ( \ array_slice ( $ data , $ offset , $ limit , $ preserve_keys ) ) ) ; }
Returns a slice of the collection starting at the given index. Returns a new Collection.
@param int      $offset
@param int      $limit
@param bool     $preserve_keys
@return \CharlotteDunois\Collect\Collection
Returns a slice of the collection starting at the given index . Returns a new Collection .