next

functionsince v0.0-927 clojure.core/nextEdit
(next coll)

Details:

Returns a sequence of the items after the first and calls seq on its argument.

Returns nil if coll is empty.


Examples:

(next [1 2 3])
;;=> (2 3)

(next [1 2])
;;=> (2)

(next [1])
;;=> nil

(next [])
;;=> nil

See Also:


Source docstring:
Returns a seq of the items after the first. Calls seq on its
argument.  If there are no more items, returns nil
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^seq next
  [coll]
  (when-not (nil? coll)
    (if (implements? INext coll)
      (-next coll)
      (seq (rest coll)))))