The following two expressions are equivalent:
(third (list 1 2 3 4))
(first (nthcdr 2 (list 1 2 3 4)))
However, using “third,” “fourth,” “fifth,” etc. isn’t always practical and (first (nthcdr n list)) seems a little verbose. Is there a way to say something like (item 2 (list 1 2 3 4)) to get the nth item in a list?
returns 4th item (zero based!)
According to the HyperSpec: