std-elt | ![]() |
Returns the i'th element from the list or throws an index out of range error. The index is zero-based.
Safe NTH
version with reverse order of arguments.
STD-ELT
throws an index out of range error, which might be more appropriate for finding sources of errors. NTH
throws just a bad argument type error.
(std-elt '(0 1) 0) => 0 (std-elt lst -1) => ERROR (std-elt lst (length lst)) => ERROR
lst: any list, including not proper lists
i: any integer which satisfies 0 <= i < (length lst)
The specified element of the list.
None.
(std-require 'STDLIST)
Defined in STDLIST