Skip Menu |
 

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

Report information
The Basics
Id: 132113
Status: new
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
Download (untitled) / with headers
text/plain 465b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.