[Issue 11798] New: std.algorithm.all with no predicate too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 22 04:44:14 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11798

           Summary: std.algorithm.all with no predicate too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-12-22 04:44:12 PST ---
I suggest to add an overload to std.algorithm.all, that works with no
predicate:

void main() {
    import std.algorithm: all;
    auto bools = [true, false, true];
    auto result = bools.all;
}


Currently you have to write code like:

auto result = bools.all!q{ a };

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


More information about the Digitalmars-d-bugs mailing list