diff --git a/lkql_checker/share/lkql/stdlib.lkql b/lkql_checker/share/lkql/stdlib.lkql index 7bf4a685f..1542ea83b 100644 --- a/lkql_checker/share/lkql/stdlib.lkql +++ b/lkql_checker/share/lkql/stdlib.lkql @@ -25,7 +25,7 @@ fun all(iterable) = fun any(iterable) = |" Return whether at least one element in the given iterable is truthy - [x for x in iterable if x].length > 0 + [x for x in iterable if x]?[1] != () fun is_assert_pragma(s) = |" Return ``true`` if the string ``s`` is the name of an assert pragma