<br><br><div class="gmail_quote">On Sat, Mar 13, 2010 at 20:17, Ellery Newcomer <span dir="ltr">&lt;<a href="mailto:ellery-newcomer@utulsa.edu">ellery-newcomer@utulsa.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
anyone know of a good (or any) syntax for an empty aa<br>
<br>
impetus:<br>
<br>
auto aa = reduce!(g)(emptyaa, lst);<br></blockquote><div><br>To associate a list of key/value pairs into one AA?<br><br>I use .init, but AA in general have become buggy for the past few releases.<br><br>auto aa = reduce!g((V[K]).init, lst); // this used to work, I think<br>
<br>But, as I said, it has become quite buggy recently:<br><br>auto aa = (int[string]).init; // empty AA?<br>aa[&quot;abc&quot;] = 3; // error, no operator [] overload for AssociativeArray!(string, int). I mean, come on.<br>
<br><br>Philippe<br></div></div>