Skip to content

Commit 0994cf8

Browse files
Update array_partition.jl
1 parent 09e4ad1 commit 0994cf8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/array_partition.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ end
66

77
ArrayPartition(x...) = ArrayPartition((x...))
88

9-
function ArrayPartition(x::S, ::Type{Val{copy}}=Val{false}) where {S<:Tuple,copy}
9+
function ArrayPartition(x::S, ::Type{Val{copy_x}}=Val{false}) where {S<:Tuple,copy_x}
1010
T = promote_type(eltype.(x)...)
11-
12-
if copy
11+
if copy_x
1312
return ArrayPartition{T,S}(copy.(x))
1413
else
1514
return ArrayPartition{T,S}(x)

0 commit comments

Comments
 (0)