machete
machete copied to clipboard
sorted_list matcher
Hi Mat!
Would you be interested in a sorted_list
matcher?
I added one in https://github.com/ScenicFramework/scenic/pull/335 for Scenic, but it would be nice to upstream it.
I think it would complement the existing InAnyOrderMatcher because the InAnyOrderMatcher has an exponential cost and the sorted_list matcher would not. In many cases it won't make a big difference, but I generally try to avoid exponential costs when they can be avoided and in this case I think it can.