thought [0..8].to_a.map{|x| p! [x, x.class] }
would do it, but, instead, this outputs:
# => [x, x.class] # => [0..8, Range(Int32, Int32)]
which tells me that .to_a
doesn’t always generate an array. (It seems broken?)
I expected it to generate something like the following:
# => [x, x.class] # => [0, Int32]
# => [x, x.class] # => [1, Int32]
...
# => [x, x.class] # => [7, Int32]
# => [x, x.class] # => [8, Int32]