This function returns the item in the nth position in the vector.
Following is the syntax.
(nth vec index)
Parameters − ‘vec’ is the vector of items. ‘index’ is the index position of the element which needs to be returned.
Return Value − The value at the index position from the vector.
Following is an example of nth in Clojure.
(ns clojure.examples.example (:gen-class)) (defn example  (println (nth (vector 1 2,3) 0)) (println (nth (vector 1 2,3) 2))) (example)
The above code produces the following output.