The doc string for nth reads:
clojure.core/nth
([coll index] [coll index not-found])
Returns the
value at the index. get returns nil if index out of bounds, nth
throws an exception unless not-found is supplied. nth also works
for strings, Java arrays, regex Matchers and Lists, and, in O(n)
time, for sequences.
The behavior agrees when the coll is [] or '() or other empty collections. However:
user=> (nth [] 10)
Execution error (IndexOutOfBoundsException) at user/eval280 (REPL:1).
null
user=> (nth nil 10)
nil
Trying to get the 10th item of [] throws but trying to get the 10th item of nil returns nil.