Skip to content

Commit 3d25259

Browse files
committed
Fix any's ambiguity on Julia 0.7
1 parent 91bdd33 commit 3d25259

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
@@ -124,6 +124,7 @@ end
124124

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

0 commit comments

Comments
 (0)