We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de4c8d4 commit f4dd609Copy full SHA for f4dd609
src/array_partition.jl
@@ -2,7 +2,7 @@ immutable ArrayPartition{T}
2
x::T
3
end
4
ArrayPartition(x...) = ArrayPartition((x...))
5
-function ArrayPartition{T}(x::Tuple,::Type{Val{T}}=Val{false})
+function ArrayPartition{T,T2<:Tuple}(x::T2,::Type{Val{T}}=Val{false})
6
if T
7
return ArrayPartition(((copy(a) for a in x)...))
8
else
0 commit comments