Chaining std.algorithm

Ali Çehreli acehreli at yahoo.com
Thu Dec 19 10:15:36 PST 2013


On 12/19/2013 03:45 AM, Jakob Ovrum wrote:
> On Monday, 16 December 2013 at 06:07:00 UTC, Ali Çehreli wrote:
>> .find!(data => data.digit.equal([ a ]))
>
> Use `std.range.only(a)` instead of `[a]` to avoid allocating GC memory.

Thanks. That is the second time I see 'only'. Hopefully, it will stick 
this time. :)

Ali



More information about the Digitalmars-d-learn mailing list