Baz:

is this the official way ?

It seems a way to perform nested mapping in D.


---
auto fruits = ["apple", "banana", "orange"][];
auto vegies = ["grass", "salad"][];

Those trailing [] are unneded.


auto youreallygonna = map!( `map!(a => "eat " ~ a)(a)` )([fruits, vegies]);

Better to use another lambda inside, instead of that string.

Bye,
bearophile

Reply via email to