src/Set.php
public function slice(int $offset, int $length = null): Set
    {
        $sliced = new self();
        $sliced->table = $this->table->slice($offset, $length);

        return $sliced;
    }
public function slice(int $offset, int $length = null): Set
    {
        $sliced = new self();
        $sliced->table = $this->table->slice($offset, $length);

        return $sliced;
    }
public function slice ( int $ offset , int $ length = null ) : Set { $ sliced = new self ( ) ; $ sliced -> table = $ this -> table -> slice ( $ offset , $ length ) ; return $ sliced ; }
Returns a subset of a given length starting at a specified offset.

@param int $offset If the offset is non-negative, the set will start
at that offset in the set. If offset is negative,
the set will start that far from the end.

@param int $length If a length is given and is positive, the resulting
set will have up to that many values in it.
If the requested length results in an overflow, only
values up to the end of the set will be included.

If a length is given and is negative, the set
will stop that many values from the end.

If a length is not provided, the resulting set
will contains all values between the offset and the
end of the set.

@return Set
Returns a subset of a given length starting at a specified offset .