Ardent\Option::filter PHP Method

filter() public method

public filter ( callable $f )
$f callable
    public function filter(callable $f)
    {
        return $this->has_value && $f($this->value) ? $this : Option::none();
    }