in reply to Re: A proper name for is_sorted function that can check more than just sorting order?
in thread A proper name for is_sorted function that can check more than just sorting order?
Basically because it defines for all elements x ≤ y => f(x) ≤ f(y)
Since the OP is only testing adjacent elements, this can only be true with a transitive relation inside the testing block.
But this can't be guaranteed because the user is free to apply any code there.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
---|