test for equality of the content of two AA

Paolo Invernizzi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 30 06:08:25 PDT 2016


On Wednesday, 26 October 2016 at 19:03:45 UTC, Ali Çehreli wrote:
> On 10/26/2016 08:03 AM, Paolo Invernizzi wrote:
>> [...]
>
> If you mean D's AAs, then that is already implemented:
>
>   void main() {
>     auto a = [ "hello" : 1, "world" : 2 ];
>     auto b = [ "world" : 2, "hello" : 1 ];
>     assert(a == b);
> }
>
> [...]

Thank you Ali, very exhaustive!


More information about the Digitalmars-d-learn mailing list