Name

nth

Usage

builtin-function

Syntax

(nth pos seq)

Description

Returns the element at position pos in seq, or null if there is no element at that position.

user 1 > (nth 0 '(a b c))
it: a
user 2 > (nth 2 '(a b c))
it: c
user 3 > (nth 9 '(a b c))
it: null
user 4 > (nth -1 '(a b c))
it: null