Hi, I want to print a key from a given hash key
but can't find simple solution
myhash = Hash.new
myhash["a"] = "bar"
# not working
myhash.fetch("a"){|k| puts k }
# working, but ugly
if myhash.has_key("a")?
puts "a"
end
Any other way?
tnx