my ideas for array operations

dennis luehring dl.soluz at gmx.net
Fri Oct 5 23:29:10 PDT 2007


> void main()
> {
>     writefln( accum!("+",int)([1,2,3,4,5]) );
>     writefln( accum!("*",int)([1,2,3,4,5]) );
>     writefln( accum!("~",char[])(["D"," ","pro","gramming"]) );
> 
> }

will u use these templates? why not?
should something like this in phobos? why not?

ciao dennis



More information about the Digitalmars-d mailing list