Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

list function

A list of the arguments.

How to write it

list(a, ...)

a
An element. Takes an expression.

Examples

  • list⁡(1,2,3)=[1,2,3]\displaystyle \operatorname{list}(1, 2, 3) = \left[ 1, 2, 3 \right]
    list(1, 2, 3)

    In the solver, list(1, 2, 3) gives [1, 2, 3].

    Open in the solver
  • nest_list

    The steps of nest: the value after each application, starting from the first.

  • fold_list

    The steps of fold: every partial result, starting from the first value.

  • map

    Apply a function to every element of a list.

  • length

    Number of elements in a list.

  • map_thread

    Apply a function to corresponding elements of several lists.

  • last

    The last element of a list.