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?
Your second solution is buggy. It fails to find a non-matching record for the following:
my @data = ( { id => 1, start => 2, end => 3 }, { id => 2, start => 3, end => 5 }, { id => 3, start => 4, end => 5 }, { id => 5, start => 5, end => 6 }, );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: A proper name for is_sorted function that can check more than just sorting order?
by 1nickt (Canon) on Dec 26, 2017 at 00:57 UTC |