I’m trying to check some belonging conditions over some tuples. One set of tuples are numeric like (2,8) and the others are combined with text (2,8,'e','f').
I want to check for every numeric pair their existance in the 4-mixed tuples. So, I did this:
help?> in
...
in(item, collection) -> Bool
∈(item, collection) -> Bool
Determine whether an item is in the given collection, in the sense
that it is == to one of the values generated by iterating over the
collection.
....
julia> in(reduce(union,(2,8)), reduce(union, (2,8, "e", "f")))
false
julia> map(in,reduce(union,(2,8)), reduce(union, (2,8, "e", "f")))
2-element Vector{Bool}:
1
1