Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

rotate_right function

A list with its elements moved to the right, the last ones going to the front.

How to write it

rotate_right(list)

list
The list. Takes a list.

Examples

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

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

    Open in the solver
  • rotate_left

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

  • select

    The elements of a list for which a test holds.

  • sort

    A list in increasing order.

  • riffle

    A list with a value put between its elements.

  • subsets

    All the sublists of a list that keep its order, as a list.

  • reverse

    A list in reverse order.