Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

last function

The last element of a list.

How to write it

last(list)

list
The list. Takes a list.

Examples

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

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

    Open in the solver
  • length

    Number of elements in a list.

  • join

    Join lists into one.

  • list

    A list of the arguments.

  • intersection

    The elements that are in every one of some lists.

  • map

    Apply a function to every element of a list.

  • head

    The head of an expression: the name of the function it is a call of.