MathTop

first 函数

返回非空列表的第一个元素。

语法

  • first(list)
  • First(list)

参数与选项

list形如 [1, 2, 3] 的列表字面量。

示例

  1. 第一个元素first([x, y, z])返回 x。