Array-wise expressions

David Nadlinger see at klickverbot.at
Sun Jan 6 07:44:20 PST 2013


On Sunday, 6 January 2013 at 15:39:03 UTC, Lobachevsky wrote:
> Is there any plan to extend array-wise expressions to include 
> calls to arbitrary "scalar" functions

Currently, there are no plans for adding a feature like this – at 
least I'm not aware of any.

However, you can just use std.algorithm.map and write map!sin(…), 
possibly followed by .array() (import std.array) for eager 
evaluation.

David


More information about the Digitalmars-d mailing list