[ create a new paste ] login | about

Link: http://codepad.org/2MRtoP3H    [ raw code | output | fork ]

Ruby, pasted on Apr 19:
1
2
3
4
5
6
7
8
9
h = {"foo", "bar"}
h.each do |k, v|
  puts k
  puts v
end
puts "----------"
h.each_key do |k|
  puts k
end


Output:
1
2
3
4
foo
bar
----------
foo


Create a new paste based on this one


Comments: