Just need to vent a little about this...
This is very nice:
class Foo
{
string doSomething(string str)
{ return ...; }
void blah(int[] arr, string[] defines)
{
auto a = arr .filter!"a<10"() .map!"a*2"() .reduce!"a+b"();
auto b = defines.map!`"--define="~a`() .join
On 21/10/11 7:27 AM, Nick Sabalausky wrote:
Just need to vent a little about this...
This is very nice:
auto a = arr
.filter!"a<10"()
.map!"a*2"()
.reduce!"a+b"();
Can't you do
auto a = pipe!(filter!"a<10", map!"a*2", reduce!"a+b");
???
Stil