why there is a [] at the end of assocArray

jfondren julian.fondren at gmail.com
Wed Jan 19 14:49:31 UTC 2022


On Wednesday, 19 January 2022 at 14:06:45 UTC, michaelbi wrote:
> i got it, though i still don't know where the [] come from.

$ rdmd --eval 'writeln("".array.strip.sort.group.assocArray)'
[]
$ rdmd --eval 
'writeln(typeid("".array.strip.sort.group.assocArray))'
uint[dchar]

It's what an empty AA looks like.


More information about the Digitalmars-d-learn mailing list