Skip to content

Commit 6616196

Browse files
committed
Fix nonboolean all deprecation warning.
In any/all, using maps and comprehensions that cannot be guaranteed to return an array of booleans was recently deprecated. This also allows `all` to short circuit once a `false` is found.
1 parent 5b18dea commit 6616196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symbolic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function simplify(ex::Expr)
9393
if ex.head != :call
9494
return ex
9595
end
96-
if all(map(isnumber, ex.args[2:end])) && length(ex.args) > 1
96+
if all(isnumber, ex.args[2:end]) && length(ex.args) > 1
9797
return eval(ex)
9898
end
9999
new_ex = simplify(SymbolParameter(ex.args[1]), ex.args[2:end])

0 commit comments

Comments
 (0)