Share your thoughts in the 2024 State of Clojure Survey!

Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

`

cljs.user=> (doc nth)

cljs.core/nth
([coll n] [coll n 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, arrays, regex Matchers and Lists, and,
in O(n) time, for sequences.
`

{{Lists}} is a carryover from the Clojure docstring, and likely also is {{regex Matchers}}.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2853 (reported by mfikes)
...