Ouzo\Utilities\Optional::_map PHP Method

_map() private method

private _map ( $closure )
    private function _map($closure)
    {
        if ($this->isPresent()) {
            return Optional::fromNullable(Functions::call($closure, $this->object));
        }
        return Optional::absent();
    }