# ==================================================
# Title: Enumerable-Based Solution
# ==================================================
#
# Ruby's Enumerable methods allow us to
# express the range generation cleanly.
start = 0.0
step = 0.1
count = 11
values =
(0...count).map do |i|
start + (i * step)
end
puts values.inspect
# run:
#
# [0.0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6000000000000001, 0.7000000000000001, 0.8, 0.9, 1.0]
#