Remove elements with matching string values in tuple

Do you know the Combinatorics package?

julia> using Combinatorics
julia> a = ["a","b","c"]
julia> Tuple.(collect(combinations(a,2)))
3-element Array{Tuple{String,String},1}:
 ("a", "b")
 ("a", "c")
 ("b", "c")

But as your example isn’t complete, this is perhaps not what you want.

2 Likes