auto aa = [1:2, 3:4];
{int, int}[] myPairs1 = aa.pairs;
foreach ({k, v}; myPairs1) {}
auto myPairs2 = aa.byPair;
foreach ({k, v}; myPairs2) {}
Bye,
bearophile
Once tuples have a built-in syntax it becomes possible to add
pairs/byPair to associative arrays:
- Re: DIP32: Uniform tuple syntax kenji hara
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax Jacob Carlborg
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax Simen Kjærås
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax Timon Gehr
- Re: DIP32: Uniform tuple syntax Timon Gehr
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax kenji hara
- Re: DIP32: Uniform tuple syntax Zach the Mystic
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax timotheecour
- Re: DIP32: Uniform tuple syntax bearophile
- Re: DIP32: Uniform tuple syntax Zach the Mystic
- Re: DIP32: Uniform tuple syn... bearophile
- Re: DIP32: Uniform tuple syn... Andrei Alexandrescu
- Re: DIP32: Uniform tuple syn... bearophile
- Re: DIP32: Uniform tuple syn... deadalnix
