std-rotate-left


Synopsis

(std-rotate-left <lst>)

Description

STD-ROTATE-LEFT rotates the list leftwise. It moves the first element to the end. It is not destructive, it always returns a copy.

It is the complement to STD-ROTATE-RIGHT.

Example

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

Arguments

lst: any proper list.

Return Value

A list.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST