Skip to content
Feather Programming Language
Main Navigation
Home
Philosophy
Documentation
Appearance
Menu
Return to top
On this page
lindex
Returns a list element by index.
Syntax
tcl
lindex
list index
Parameters
list
: The list to index into
index
: The index of the element to return (0-based, or negative from end)
Examples
Basic indexing
Feather
▶ Run
Output
Clear
Negative indices
Feather
▶ Run
Output
Clear
Out of bounds
Feather
▶ Run
Output
Clear
See Also
list
- Create a list
llength
- Get list length
lassign
- Assign elements to variables