[Issue 8712] New: There is no staticFilter in std.typetuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 23 10:25:12 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8712
Summary: There is no staticFilter in std.typetuple
Product: D
Version: future
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: void.unsigned at gmail.com
--- Comment #0 from void.unsigned at gmail.com 2012-09-23 10:26:09 PDT ---
The standard module for type list manipulation there are metafunctions such as
staticMap and ReplaceAll and EraseAll, but there is no staticFilter.
staticFilter is good, because filter, like map is foundamental operation of
functional-programming like lists. Also, it is more general-purpose: EraseAll
can be implemented in terms of staticFilter.
As a use-case, we may use the function as follows:
alias staticFilter!(isInputRange, R1, R2, R3) InputRanges;
--
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