Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

most function

A list without its last element.

How to write it

most(list)

list
The list. Takes a list.

Examples

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

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

    Open in the solver
  • nest

    Apply a function again and again to a value.

  • map_thread

    Apply a function to corresponding elements of several lists.

  • nest_list

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

  • map

    Apply a function to every element of a list.

  • part

    Read part of a list by position, counting from 1; also written list[i].

  • list

    A list of the arguments.