Skip to content

Commit bfc519e

Browse files
tuple dispatch
1 parent a9ffb9e commit bfc519e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_partition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ immutable ArrayPartition{T}
22
x::T
33
end
44
ArrayPartition(x...) = ArrayPartition((x...))
5-
function ArrayPartition{T}(x,::Type{Val{T}}=Val{false})
5+
function ArrayPartition{T}(x::Tuple,::Type{Val{T}}=Val{false})
66
if T
77
return ArrayPartition(((copy(a) for a in x)...))
88
else

0 commit comments

Comments
 (0)