On Sat, Mar 13, 2010 at 20:17, Ellery Newcomer
<ellery-newcomer@utulsa.edu> wrote:
anyone know of a good (or any) syntax for an empty aa
impetus:
auto aa = reduce!(g)(emptyaa, lst);
To associate a list of key/value pairs into one AA?
I use .init, but AA in general have become buggy for the past few releases.
auto aa = reduce!g((V[K]).init, lst); // this used to work, I think
But, as I said, it has become quite buggy recently:
auto aa = (int[string]).init; // empty AA?
aa["abc"] = 3; // error, no operator [] overload for AssociativeArray!(string, int). I mean, come on.
Philippe