seany:

int[string] k;
// populate k here

int[string] j;


foreach(sttring key, int val; k)
{

j[key] = val;
break;
}

This is OK, and you can encapsulate this into a little function. But you are not removing the pair from the first associative array. So you have to remove the item before the break.

Bye,
bearophile

Reply via email to