eliminate cast

Simen Kjaeraas simen.kjaras at gmail.com
Wed May 14 10:13:46 PDT 2008


Dee Girl <deegirl at noreply.com> wrote:

> If you have two arrays and want to map over them you do:
>
> arr1 ~ arr2 /map/ &atoi;
>
> But with map you do:
>
> map!(atoi)(arr1, arr2);

That's one of the reasons we want better tuples.

(arr1, arr2) /map/ &atoi;

-- Simen



More information about the Digitalmars-d mailing list