Pass full arrays to methods in Ruby, and return arrays as we

2019-06-16 02:09栏目:技术创新

array = [1, 2, 3, 4]

def returner(array)
  return array
end

array2 = returner(array)

puts array2

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:Pass full arrays to methods in Ruby, and return arrays as we