lrange — Get range of elements from a list.
lrange list first last
lrange
list
first
last
The lrange command fetches a range of elements from list, starting at element first and ending at last.
lrange {a b c d e f g} 0 2
Produces:
a b c