How can I access the three objects in this hash separately?
hash = {"Paul" => [25, 18]}
In this code,
hash.each_pair do |k, v|
print "#{k}: "
v.each do |n|
print "#{n} "
end
print "\n"
end
the variable n accesses [25, 18] as a single object. Doing for example |n, m| does not work.