# Pastebin POlU89Q2 def loop(k = 'first', r={}) r[k] = 'first' loop('1', r) # add this in previous hash key in each time... r end