Skip to content

Commit a50b50d

Browse files
committed
Fixup more {} => Any[] notation
1 parent 819826c commit a50b50d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/partitions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function visit(X::Integer)
7070
end
7171

7272
#Produces noncrossing partitions of length n
73-
ncpartitions(n::Integer)=ncpart(1,n,n,{})
73+
ncpartitions(n::Integer)=ncpart(1,n,n,Any[])
7474
function ncpart(a::Integer, b::Integer, nn::Integer,
7575
x::Array{Any,1})
7676
n=b-a+1
@@ -80,7 +80,7 @@ function ncpart(a::Integer, b::Integer, nn::Integer,
8080
#Abort if construction is out of lex order
8181
if length(x)>0 && x[end] > root return end
8282
#Produce if we've filled all the holes
83-
sofar = {x..., root}
83+
sofar = Any[x..., root]
8484
ssofaru = sort(union(sofar...))
8585
if length(ssofaru)==nn && ssofaru==[1:nn]
8686
produce(sofar)

0 commit comments

Comments
 (0)