lab3/labq3_utility.rb
# takes in an array of strings and returns the same array with all the strings converted to integers
# e.g. input: ["3", "4", "8", "-1"]. returns [3, 4, 8, -1]
takes in an array of strings and returns the same array with all the strings converted to integers
e.g.
takes in an array of strings and returns the same array with all the strings converted to integers e . g .
def convert_array_elements_to_i(array)
  for i in 0..array.length-1
    array[i] = array[i].to_i
  end
end
def convert_array_elements_to_i ( array ) for i in 0 .. array . length - 1 array [ i ] = array [ i ] . to_i end end
takes in an array of strings and returns the same array with all the strings converted to integers
e.g.
takes in an array of strings and returns the same array with all the strings converted to integers e . g .
array