Skip to content

Commit 5a01f9d

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 676531b + d4ae991 commit 5a01f9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array_partition.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ end
123123

124124
Base.mapreduce(f,op,A::ArrayPartition) = mapreduce(f,op,(mapreduce(f,op,x) for x in A.x))
125125
Base.any(f,A::ArrayPartition) = any(f,(any(f,x) for x in A.x))
126+
Base.any(f::Function,A::ArrayPartition) = any(f,(any(f,x) for x in A.x))
126127
function Base.copyto!(dest::Array,A::ArrayPartition)
127128
@assert length(dest) == length(A)
128129
cur = 1

0 commit comments

Comments
 (0)