Skip to content

Commit 4ba326f

Browse files
add tuple constructor
1 parent 7e6c2c9 commit 4ba326f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ struct Params
6868
end
6969

7070
Params() = Params(Buffer([], false), IdSet())
71-
Params(xs::Vector) = Params(Buffer(xs, false), IdSet(xs))
71+
Params(xs) = Params(Buffer(xs, false), IdSet(xs))
7272
Params(ps::Params) = ps
73+
Params(xs::Tuple) = Params(collect(xs))
7374

7475
@forward Params.order Base.iterate, Base.length, Base.getindex
7576
@forward Params.params Base.in

0 commit comments

Comments
 (0)