On 04/23/2012 10:56 AM, Joseph Rushton Wakeling wrote:
On 23/04/12 19:46, Joseph Rushton Wakeling wrote:
On 23/04/12 18:56, bearophile wrote:
jerro:

return repeat(0).map!(_ => uniform(lower, upper))();


Yes, this works nicely. Thanks very much!

Is this a new addition? With GDC I get a compiler error:

expression expected, not '>'

... suggesting => isn't supported.


The lambda syntax was added in 2.058:

  http://dlang.org/changelog.html

Ali

Reply via email to