std-rotate-right


Synopsis

(std-rotate-right <lst>)

Description

STD-ROTATE-RIGHT rotates the list rightwise. It moves the last element to the front. It is not destructive, it always returns a copy.

It is the complement to STD-ROTATE-LEFT

Example

(std-rotate-right '(0 1 2 3 4))    => (4 0 1 2 3)

Arguments

lst: any proper list.

Return Value

A list.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST