src/Collection/ImmArray.php
public function slice($begin = 0, $end = null)
    {
        $it = new SliceIterator($this->sfa, $begin, $end);
        return new static($it);
    }
public function slice($begin = 0, $end = null)
    {
        $it = new SliceIterator($this->sfa, $begin, $end);
        return new static($it);
    }
public function slice ( $ begin = 0 , $ end = null ) { $ it = new SliceIterator ( $ this -> sfa , $ begin , $ end ) ; return new static ( $ it ) ; }
Take a slice of the array

@param int $begin Start index of slice
@param int $end End index of slice
@return static
Take a slice of the array