We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56af95d commit 96040b9Copy full SHA for 96040b9
src/utils.jl
@@ -67,6 +67,7 @@ Base.occursin(t::Expression, x::Expression) = isequal(x, t)
67
vars(exprs) = foldl(vars!, exprs; init = Set{Variable}())
68
function vars!(vars, O)
69
isa(O, Operation) || return vars
70
+ O.op isa Variable && push!(vars, O.op)
71
for arg ∈ O.args
72
if isa(arg, Operation)
73
isa(arg.op, Variable) && push!(vars, arg.op)
0 commit comments