IFTI - first impressions

Don Clugston dac at nospam.com.au
Thu Mar 9 00:17:33 PST 2006


Oskar Linde wrote:
> Oskar Linde skrev:
> 
>> const int[] data = [1,2,3,76,2,1,3,45,2];
>> writefln("data = ", data);
>>
>> auto squared = map(data, function int(int x) { return x*x; });
>> writefln("squared = ", squared);
>>
> 
> auto odd = data.filter(function bool(int x) { return (x&1) == 1; });
> writefln("odd = ", odd);
>

Nifty IFTI!
It makes sense to start writing D template libraries, now.
I'm looking forward to seeing what is produced.



More information about the Digitalmars-d mailing list