Skip to content

Commit c0e3a79

Browse files
Add == overload
1 parent 6e6569d commit c0e3a79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/array_partition.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ function Base.:\(A::Number, B::ArrayPartition)
9898
Base.broadcast(/, B, A)
9999
end
100100

101+
Base.:(==)(A::ArrayPartition,B::ArrayPartition) = A.x == B.x
102+
101103
## Functional Constructs
102104

103105
Base.mapreduce(f,op,A::ArrayPartition) = mapreduce(f,op,(mapreduce(f,op,x) for x in A.x))

0 commit comments

Comments
 (0)