Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Iterating over a hash of hash of hashes
Steven Hirsch
8/19/2008 12:34:00 AM
Is there a more "rubyesque" idiom for iterating of a multi-dimensional
hash other than the following:
workq_dev.get_all_zapps.each do |k,v|
print "#{k} ==> "
v.each do |k,v|
puts "#{k} ==> "
puts v.class
v.each { |k,v| puts "#{k} ==> #{v}" }
end
end
thanks in advance!
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Iterating over a hash of hash of hashes
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password