Java streams Vs LINQ Vs D

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Mar 27 22:33:33 PDT 2013


On Thursday, 28 March 2013 at 00:08:31 UTC, Jesse Phillips wrote:
> Hmm, I would have thought this should work:
>
>     auto nameList1 = ["Anders", "David", "James", "Jeff", "Joe",
> "Erik"];
> 	 nameList1.copy( a => writeln("Hello! ", a) );
>
> According std.range: "r(e); 	R is e.g. a delegate accepting an 
> E."

Filed as bug.

http://d.puremagic.com/issues/show_bug.cgi?id=9823

Though I'd need to specify a type

nameList1.copy( (string a) => writeln("Hello! ", a) );


More information about the Digitalmars-d mailing list