user=> (nthnext (range 10) 3) (3 4 5 6 7 8 9) user=> (nthnext [] 3) nil
Returns the value at the index. get returns nil if index out of bou
Returns a lazy sequence of all but the first n items in coll.
Returns the nth rest of coll, coll when n is 0.
(defn nthnext "Returns the nth next of coll, (seq coll) when n is 0." {:added "1.0" :static true} [coll n] (loop [n n xs (seq coll)] (if (and xs (pos? n)) (recur (dec n) (next xs)) xs)))
Comments top
No comments for nthnext. Log in to add a comment.