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 f4dd609 commit 5750f7eCopy full SHA for 5750f7e
src/array_partition.jl
@@ -4,9 +4,9 @@ end
4
ArrayPartition(x...) = ArrayPartition((x...))
5
function ArrayPartition{T,T2<:Tuple}(x::T2,::Type{Val{T}}=Val{false})
6
if T
7
- return ArrayPartition(((copy(a) for a in x)...))
+ return ArrayPartition{T2}(((copy(a) for a in x)...))
8
else
9
- return ArrayPartition((x...))
+ return ArrayPartition{T2}((x...))
10
end
11
12
Base.similar(A::ArrayPartition) = ArrayPartition((similar(x) for x in A.x)...)
0 commit comments