Skip to main content

LMOVE

Syntax

LMOVE source destination <LEFT | RIGHT> <LEFT | RIGHT>

Module

list

Categories

list slow write

Description

Move element from one list to the other specifying left/right for both lists. LEFT represents the start of a list. RIGHT represents the end of a list.

Examples

Move an element from the beginning of the source list to the end of the destination list:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
ok, err := vault.LMove("source", "destination", "LEFT", "RIGHT")