@DLosc L = [1, 1.3, 2, 2.5]
I want to iterate over sorted pairs so that each end of the pair fits between two different values in L. In this case an acceptable created list of pairs would be:
[(0.5, 1.2), (0.5, 1.4), (0.5, 2.1), (0.5, 2.6), (1.1, 1.4), (1.1, 2.1), (1.1, 2.6), (1.4, 2.1), (1.4, 2.6), (2.1, 2.6)]