rest

functionsince v0.0-927 clojure.core/restEdit
(rest coll)

Details:

Returns a possibly empty sequence of the items after the first item.

Calls seq on its argument.


Examples:

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

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

(rest [1])
;;=> ()

(rest [])
;;=> ()

See Also:


Source docstring:
Returns a possibly empty seq of the items after the first. Calls seq on its
argument.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^seq rest
  [coll]
  (if-not (nil? coll)
    (if (implements? ISeq coll)
      (-rest coll)
      (let [s (seq coll)]
        (if s
          (-rest ^not-native s)
          ())))
    ()))