Make a hash out of two ranges

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Feb 28 07:14:38 PST 2013


On 2/28/13, Chris Cain <clcain at uncg.edu> wrote:
> Aha, I see now. Here you go:
>
>      zip([1,3], [2,4])
>          .map!(e => [e[0] : e[1]])()
>          .writeln();

Thanks, I figured this out too by now. :)

But it's definitely nicer having the a/b syntax. I guess I could just
overload my map against the phobos map.


More information about the Digitalmars-d-learn mailing list