• (rseq rev)
Returns, in constant time, a seq of the items in rev (which
can be a vector or sorted-map), in reverse order. If rev is empty returns nil

1 Example top

  • user=> (vec (range 10))
    [0 1 2 3 4 5 6 7 8 9]
    
    user=> (rseq (vec (range 10)))
    (9 8 7 6 5 4 3 2 1 0)
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1474 top

(defn rseq
  "Returns, in constant time, a seq of the items in rev (which
  can be a vector or sorted-map), in reverse order. If rev is empty returns nil"
  {:added "1.0"
   :static true}
  [^clojure.lang.Reversible rev]
    (. rev (rseq)))
Vars in clojure.core/rseq:
Used in 0 other vars

Comments top

No comments for rseq. Log in to add a comment.