Check if a combination of values exists across two rows

zip is probably good for this

julia> x = [1, 2, 3]
3-element Array{Int64,1}:
 1
 2
 3

julia> y = [4, 5, 6]
3-element Array{Int64,1}:
 4
 5
 6

julia> (3, 6) in zip(x, y)
true
2 Likes