| That leaves the k->target links there – it's a union of the original and the transposition. Mark Guzdial |
| Key | Value |
| Fred | Wilma |
| Barney | Betty |
| George | Martha |
| Ozzie | Ozzie |
| I believe the intent was to create a new dictionary, not to modify it in place. Webb has posted the workhorse line of code, but it's worth figuring out what the other lines required would be,too. Or you cantry to change it in place if you really want – it's tricky though, huh! (On Mark's comment, I'm guessing he did the same thing I did and read aDict and aDictT as the same thing. Naming is irrelevant to computers, but very important to human readers.) -Lex Spoon |