nth
Retrieves the element at a specified index from an array.
(nth index arr)Returns
Parameters
Examples
(nth 1 [1, 2, 3, 4, 5])
;;=> 2
(nth -1 ["John", "Pop", "Maria"])
;;=> Maria
Last updated
Retrieves the element at a specified index from an array.
(nth index arr)(nth 1 [1, 2, 3, 4, 5])
;;=> 2
(nth -1 ["John", "Pop", "Maria"])
;;=> Maria
Last updated