public function slice(int $count) : self
    {
        $list = $this->list;
        $listCount = $list->count();
        $new = new \SplFixedArray($listCount - $count);

        foreach ($new as $index => $val) {
            $new[$index] = $list[($index + $count)];
        }

        return new static($new);
    }
public function slice(int $count) : self
    {
        $list = $this->list;
        $listCount = $list->count();
        $new = new \SplFixedArray($listCount - $count);

        foreach ($new as $index => $val) {
            $new[$index] = $list[($index + $count)];
        }

        return new static($new);
    }
public function slice ( int $ count ) : self { $ list = $ this -> list ; $ listCount = $ list -> count ( ) ; $ new = new \ SplFixedArray ( $ listCount - $ count ) ; foreach ( $ new as $ index => $ val ) { $ new [ $ index ] = $ list [ ( $ index + $ count ) ] ; } return new static ( $ new ) ; }
slice method.

@method slice

@param int $count

@return object Collection
slice method .