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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 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: -------

Reply via email to