Function min
Source pub fn min(args: &[Value]) -> Result<Value, RuntimeError>
Expand description
获取数组中的最小值
返回数字数组中的最小值。
§返回值
Number - 数组中的最小值
- 空数组时抛出错误
- 数组包含非数字元素时抛出类型错误
Set NUMS [3, 7, 2, 9, 1]
Set MINIMUM MIN(NUMS) // 1
Set TEMPS [18.5, 22.0, 15.5, 20.5]
Set LOWEST MIN(TEMPS) // 15.5