MathTop

select_in_range 函数

选出落在闭区间内的数值。

语法

  • Statistics:-SelectInRange(list, lower..upper)
  • Statistics:-SelectInRange(list, lower, upper)
  • select_in_range(list, lower, upper)

参数与选项

list形如 [1, 2, 3] 的列表字面量。
lower闭区间下界。
upper闭区间上界。

示例

  1. 选择区间内数值Statistics:-SelectInRange([1, 2, 3, 4], 2, 3)返回 [2.0, 3.0]。