# File lib/util.rb, line 20 def map_with_index # sigh... ret = [] each_with_index { |e, i| ret << yield(e, i) } ret end