I can't figure out why the following expression does not convert Strings to Integers:
[["1", "2"], ["10", "20"]].each {|sr| sr.map(&:to_i)}
=> [["1", "2"], ["10", "20"]]
So, instead of getting a nested array of integer numbers I'm still getting the same String values. Any idea ?
Thank you.
uSer Ruby version: 2.6.1