You're viewing version 1.2.0 of rseq. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (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:1233 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"}
  [^clojure.lang.Reversible rev]
    (. rev (rseq)))
Vars in clojure.core/rseq: defn
Used in 0 other vars

Comments top

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