Skip to content

Commit d4ae991

Browse files
Merge pull request #37 from JuliaDiffEq/myb/0.7
Fix `any`'s ambiguity on Julia 0.7
2 parents 91bdd33 + 3d25259 commit d4ae991

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)