src/Primitive/Container/Container.php
public function restAfterKey($key)
    {
        $key = $this->getKey($key);

        if ( ! array_key_exists($key, $this->items))
        {
            throw new OffsetNotExistsException('Key: '. $key .' not exists');
        }

        $index = $this->keys()->flip()->get($key);

        return $this->restAfterIndex($index);
    }
public function restAfterKey($key)
    {
        $key = $this->getKey($key);

        if ( ! array_key_exists($key, $this->items))
        {
            throw new OffsetNotExistsException('Key: '. $key .' not exists');
        }

        $index = $this->keys()->flip()->get($key);

        return $this->restAfterIndex($index);
    }
Return rest items after given key.

@param mixed $key
@return \im\Primitive\Container\Container
@throws \im\Primitive\Container\Exceptions\ContainerException
@throws \im\Primitive\Support\Exceptions\OffsetNotExistsException