Lua
Python
for k,v in pairs(d) do
XXX(k,v)
end
for k,v in d.iteritems():
XXX(k,v)
Ruby #1
Ruby #2
d.each { |k,v| XXX(k,v) }
PHP
d.each do |k,v|
XXX(k,v)
end
Javascript/ECMAScript/ActionScript
foreach ($d as $k => $v) {
XXX( $k, $v );
}
for( var k in d ) {
XXX( k, d[k] )
}
My point? No point.