# I have this
arr = [[1.1, 2.2, 3.3], [4.1, 5.6, 6.8], [7.1, 8.7, 9.0], [10.0, 11.4, 12.6]]

# I want this [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]]

# This works. But, I want to find a way that is faster than this in 1
or 2 lines of code.
# Any nice ideas how I can do it without 2 maps?
# Even if it is not faster, I would like to see how you would do it.

p arr.map{|y| y.map{|z| z.to_i}}




Harry