Changes in new versions / Ruby 3.4

# requires Ruby 3.4 or newer

# *** before: ***
squares_old = [123].map { |x| x * x }   # a numbered parameter also works: _1

# *** in version 3.4: ***
# in Ruby 3.3 a bare "it" only produced a deprecation warning; it became a
# real implicit block parameter in 3.4, and unlike _1 it also works in
# nested blocks
squares = [123].map { it * it }

puts squares.inspect