From 022082888ef9151bf918a4c480b7e5d3f5080e40 Mon Sep 17 00:00:00 2001 From: epatters Date: Wed, 7 Nov 2018 12:53:58 -0800 Subject: [PATCH] Fix deprecated use of union() on arrays. --- src/matchutils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matchutils.jl b/src/matchutils.jl index 847d1dc..0311365 100644 --- a/src/matchutils.jl +++ b/src/matchutils.jl @@ -73,7 +73,7 @@ function getvars(e::Expr) getvars(e.args) end end -getvars(es::AbstractArray) = union([getvars(e) for e in es]...) +getvars(es::AbstractArray) = unique!(vcat([getvars(e) for e in es]...)) # # getvar