diff --git a/src/functions.php b/src/functions.php index 7fffd87..6c034b3 100644 --- a/src/functions.php +++ b/src/functions.php @@ -32,6 +32,11 @@ function predicate($predicate): Predicate } } +function ref(callable $callable) +{ + return \Closure::fromCallable($callable); +} + function not($predicate) { return predicate($predicate)->not();