Comment
Comment by SPACECADET3D
It's not a language specific feature, but you can do the bookkeeping yourself. In the simplest form you can write:
Then when you do pattern matching with wildcards x_ and y_ you can do
with the requirement that x_ < y_. This way you will know you match them in the expected order and not the other way around.