Skip to content

Commit 3877ebc

Browse files
committed
in place unique
1 parent c9678ab commit 3877ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function get_variables!(vars, e::Operation, varlist=nothing)
9797
else
9898
foreach(x -> get_variables!(vars, x, varlist), e.args)
9999
end
100-
return unique(vars)
100+
return unique!(vars)
101101
end
102102
get_variables(e::Operation, varlist=nothing) = get_variables!(Operation[], e, varlist)
103103

0 commit comments

Comments
 (0)