📜  ruby 在数组中找到最大值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:43.185000             🧑  作者: Mango

代码示例1
# using .max for arrays
arr = [1,3,4,5]
arr.max