Name

lindex — Return the Nth element of a list

Synopsis

lindex list index

Description

The lindex command takes a list and an index number as arguments, and return's the index'th element of the list.

Example

puts [lindex {a b c} 2]
	

Produces:

c