Closed p-smirnov closed 2 years ago
Previous code tried to be clever, but failed to keep track of the fact that if we sort x, is.unsorted(x) will start to evaluate to false later.
IMO, the flow is better working with 1 variable at a time, so I added a flag to remember the sorted status of the data.
I will fix my comments.
Previous code tried to be clever, but failed to keep track of the fact that if we sort x, is.unsorted(x) will start to evaluate to false later.
IMO, the flow is better working with 1 variable at a time, so I added a flag to remember the sorted status of the data.