You're right, hippo++. I used that construct for pedagogical purpose because I thought at the time that looping over the keys to pick up the values was showing in a better way what's going on, but, thinking again about it, it's true that using values or keys is just the the same idea after all, and that using values makes it possible to use a simpler syntax, be is in a for loop as my post above or, even better, in a direct array assignment.