[Issue 8469] isSorted fails with predicate "a.length < b.length ? true : a < b"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 30 10:47:18 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8469
--- Comment #8 from Andrei Alexandrescu <andrei at metalanguage.com> 2012-07-30 10:47:16 PDT ---
It's very simple, if isSorted finds two adjacent elements a, b that satisfy
pred(b, a) it can also check whether pred(a, b) and assert if that's also true.
--
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