Skip to content

Commit bcf6da0

Browse files
committed
avoid a Dict
1 parent 40fdae6 commit bcf6da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstractalgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function to_mpoly(t, dicts=(OrderedDict{Sym, Any}(), OrderedDict{Any, Sym}()))
7575
t_poly = substitute(labeled, replace_with_poly, fold=false)
7676
simplify(t_poly, EmptyCtx(), rules=mpoly_rules),
7777
sym2term,
78-
Dict(Pair.(length(vars):-1:1, ks))
78+
reverse(ks)
7979
end
8080

8181
function to_term(x, dict, syms)

0 commit comments

Comments
 (0)