NthElement

Name

NthElement -- Returns an element of a list, by index

Synopsis

NthElement[list<->NLIST(T*), n->INTEGER] =: T 

Description

NthElement returns the nth element of list. By convention, the first element of a list is indexed by 1. It is an error if n is nonpositive, or if n is greater than the number of elements in list.

Short forms

list[[n]], list_n.

See also

Length.