Insert an element into an Associative Array ?
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Apr 4 12:19:19 PDT 2012
On Wed, Apr 04, 2012 at 08:57:54PM +0200, Chris Pons wrote:
> I'm playing around with associative arrays right now and I can't
> seem to figure out how to add additional objects to the array. I
> tried insert but it doesn't recognize both arguments.
>
> Also, if I do this it produces an error:
>
> Node[bool] test;
>
> Node node;
>
> Node[bool] temp = [ false:node ];
>
> test ~= temp;
Try:
temp[false] = node;
T
--
One Word to write them all, One Access to find them, One Excel to count
them all, And thus to Windows bind them. -- Mike Champion
More information about the Digitalmars-d-learn
mailing list