Ruby enum it (Map argument)
Ruby 3.4 and larger
[1, 2, 3].map { it * 100 } # [100, 200, 300]
Ruby 2.7 and up
[1, 2, 3].map { _1 * 100 } # [100, 200, 300]
All ruby versions
[1, 2, 3].map { |x| x * 100 } # [100, 200, 300]
[1, 2, 3].map { it * 100 } # [100, 200, 300]
[1, 2, 3].map { _1 * 100 } # [100, 200, 300]
[1, 2, 3].map { |x| x * 100 } # [100, 200, 300]