Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

rest function

A list without its first element.

How to write it

rest(list)

list
The list. Takes a list.

Examples

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

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

    Open in the solver
  • reverse

    A list in reverse order.

  • replace_part

    A list with the part at a position replaced; write position -> value.

  • riffle

    A list with a value put between its elements.

  • range

    The whole numbers in a range, as a list.

  • rotate_left

    A list with its elements moved to the left, the first ones going to the end.

  • prepend

    A list with an element added at the start.