📅  最后修改于: 2022-03-11 15:04:46.749000             🧑  作者: Mango
# accept array as parameter
def functionf(arr)
print arr, "\n"
# return an array
["a", "b", "c"]
end
data = [3.5, 4.7, 8.6, 2.9]
# pass array to function and get the returned array
returned = functionf(data)
print returned, "\n"