P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello dear esteemed monks, I've come up with an is_sorted { $a ... $b } \@array, "Message"; testing condition. Soon enough I realized that not only total orders like $a ge $b or $a <= $b can be tested, but just anything regarding adjacent \@array elements:
That's not even a partial order, but it is quite a meaningful testing condition. How should is_sorted be named then? Or should I leave it as is and just add a comment about the arbitrariness of the ordering function? In reply to A proper name for is_sorted function that can check more than just sorting order? by Dallaylaen
|
|