function | since v0.0-927 | clojure.core/reverse | Edit |
(reverse coll)
Returns a sequence of the items in coll
in reverse order. Not lazy.
Returns a seq of the items in coll in reverse order. Not lazy.
(defn reverse
[coll]
(if (reversible? coll)
(or (rseq coll) ())
(reduce conj () coll)))