Returns the nth next of coll, (seq coll) when n is 0.
(nthnext (range 10) 3) ;;=> (3 4 5 6 7 8 9) (nthnext [] 3) ;;=> nil (nthnext [1 2 3 4 5 6 7] 4) ;;=> (5 6 7)
;; drop is also similar, but different (nthnext (range 10) 5) ;;=> (5 6 7 8 9) (drop 5 (range 10)) ;;=> (5 6 7 8 9) ;; here is a case where the results differ (nthnext [] 3) ;;=> nil (drop 3 []) ;;=> () ; a lazy sequence
Returns the value at the index. get returns nil if index out of bounds, nth throws an exception un...
Returns a lazy sequence of all but the first n items in coll. Returns a stateful transducer when n...
Returns the nth rest of coll, coll when n is 0.
nthnext is similar to drop. But nthnext is eager, while drop is lazy.
nthnext
drop
Also parameters are in opposite order.