Skip to content

Commit 6bf7697

Browse files
authored
Fix fill!(::ArrayPartition)
1 parent 8184767 commit 6bf7697

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/array_partition.jl

+7
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ function Base.copyto!(A::ArrayPartition, src::ArrayPartition)
209209
A
210210
end
211211

212+
function Base.fill!(A::ArrayPartition, x)
213+
for i in eachindex(A.x)
214+
fill!(A.x[i], x)
215+
end
216+
A
217+
end
218+
212219
## indexing
213220

214221
# Interface for the linear indexing. This is just a view of the underlying nested structure

0 commit comments

Comments
 (0)