Skip Menu |

This queue is for tickets about the List-MoreUtils CPAN distribution.

Report information
The Basics
Id: 132113
Status: rejected
Priority: 0/
Queue: List-MoreUtils

People
Owner: Nobody in particular
Requestors: EDAVIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.428
Fixed in: (no value)



Subject: Wishlist: is_sorted and assert_sorted
Checking a list is sorted is much faster than sorting it. Please add an is_sorted() function. Often you want to sanity check or assert that something is sorted; in that case assert_sorted(@items) could produce an error message like Sequence expected to be sorted, but seen element "def" followed by element "abc" I would also find it useful to have is_strictly_ascending() and assert_strictly_ascending(), to check for sorted with no duplicate values.
Please carefully read open tickets before "spamming" wishes - especially when they come without tests and implementation proposals.