Skip to content

Commit

Permalink
reduce -> Compat.reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
saschatimme committed Jul 13, 2018
1 parent 4245772 commit 8f50449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/var.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ end

# Variable vector x returned garanteed to be sorted so that if p is built with x then vars(p) == x
macro polyvar(args...)
reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{true}, arg) for arg in args], init=:())
Compat.reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{true}, arg) for arg in args], init=:())
end
macro ncpolyvar(args...)
reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{false}, arg) for arg in args], init=:())
Compat.reduce((x,y) -> :($x; $y), [buildpolyvar(PolyVar{false}, arg) for arg in args], init=:())
end

struct PolyVar{C} <: AbstractVariable
Expand Down

0 comments on commit 8f50449

Please sign in to comment.