Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

append function

A list with an element added at the end.

How to write it

append(list, x)

list
The list. Takes a list.
x
The element to add. Takes an expression.

Examples

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

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

    Open in the solver
  • apply

    Replace the head of an expression, or the brackets of a list, with a function.

  • accumulate

    Running totals of a list.

  • complement

    The elements of a list that are in none of the others.

  • union

    The elements in any of some lists, each once, in order.

  • constant_array

    A list of copies of a value.

  • total

    Sum of the elements of a list.