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 09e4ad1 commit 0994cf8Copy full SHA for 0994cf8
src/array_partition.jl
@@ -6,10 +6,9 @@ end
6
7
ArrayPartition(x...) = ArrayPartition((x...))
8
9
-function ArrayPartition(x::S, ::Type{Val{copy}}=Val{false}) where {S<:Tuple,copy}
+function ArrayPartition(x::S, ::Type{Val{copy_x}}=Val{false}) where {S<:Tuple,copy_x}
10
T = promote_type(eltype.(x)...)
11
-
12
- if copy
+ if copy_x
13
return ArrayPartition{T,S}(copy.(x))
14
else
15
return ArrayPartition{T,S}(x)
0 commit comments