Ultra-pure map()?

David Held dmd at wyntrmute.com
Sun Dec 29 14:13:57 PST 2013


On 12/28/2013 2:07 AM, FreeSlave wrote:
> [...]
> If you want to get result just now, then use 'array' function from
> std.array module.
>
> map!fun(range).array;
>
> or
>
> array(map!fun(range));

Syntactically compact and slightly better expression of intent, but much 
less efficient than just calling reduce().

Dave



More information about the Digitalmars-d-learn mailing list