[Issue 5894] [patch] std.algorithm.isSorted doesn't handle monotonicity (i.e. "<=")

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 26 19:02:48 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5894


Rob Jacques <sandford at jhu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|patch                       |


--- Comment #2 from Rob Jacques <sandford at jhu.edu> 2011-04-26 18:59:03 PDT ---
Thank you for the clarification. I was definitely confused by the docs on this.
What I read was, isSorted tested to see if all element pairs obeyed the
predicate, whereas what it actually tests in whether the range conforms to what
a range sorted by the predicate would be like.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list