Is it possible to define a Tuple Type based only on the parameters of the Tuple and not the order? For example: Tuple{Float64, Char} == Tuple{Char, Float64} evaluates false, but I would like to create the possibility that these are identical.
For background, I have a number of Composite Types, MyTypeA, MyTypeB, ... , and I would like to define a Tuple Type that refers to specific combinations of Types:
Order is pretty fundamental to the definition of Tuple, so there’s not a way to ignore order. Maybe you could use a Union{MyTypeA, MyTypeB, MyTypeC} somehow, since order isn’t significant for Union types?
which gets obnoxious quickly.
If I impose a unique order instead, how can I get julia to sort them? The docs (Essentials · The Julia Language) suggest I should implement isless(). How do I go about doing that?