Revert "Merge pull request #707 from eco/real-lambdas"

Because of the auto-tester breaking.

This reverts commit d5319fcfb6, reversing
changes made to 5313288dd1.
This commit is contained in:
k-hara 2012-07-23 14:25:38 +09:00
parent 9d91e1de2f
commit 4c4c35c922
2 changed files with 232 additions and 255 deletions

File diff suppressed because it is too large Load diff

View file

@ -6536,7 +6536,7 @@ enum SearchPolicy
assert(!r.contains(42)); // passes although it shouldn't assert(!r.contains(42)); // passes although it shouldn't
---- ----
*/ */
struct SortedRange(Range, alias pred = ((a, b) => a < b)) struct SortedRange(Range, alias pred = "a < b")
if (isRandomAccessRange!Range) if (isRandomAccessRange!Range)
{ {
private alias binaryFun!pred predFun; private alias binaryFun!pred predFun;
@ -7047,7 +7047,7 @@ unsorted range failing the test is very high (however, an
almost-sorted range is likely to pass it). To check for sortedness at almost-sorted range is likely to pass it). To check for sortedness at
cost $(BIGOH n), use $(XREF algorithm,isSorted). cost $(BIGOH n), use $(XREF algorithm,isSorted).
*/ */
auto assumeSorted(alias pred = ((a, b) => a < b), R)(R r) auto assumeSorted(alias pred = "a < b", R)(R r)
if (isRandomAccessRange!(Unqual!R)) if (isRandomAccessRange!(Unqual!R))
{ {
return SortedRange!(Unqual!R, pred)(r); return SortedRange!(Unqual!R, pred)(r);