LSET

LSET can be used to create empty lists or lists with the provided values.

LSET

About

Time complexity: O(n)
Accept type:

Return type:

Syntax:

  • LSET <list>
  • LSET <list> <value1> <value2> ...

Creates a list with the provided values, or simply creates an empty list if it doesn’t already exist in the table.