user=> (apply str (replicate 7 \space)) ; 7 spaces user=> (replicate 7 (rand-int 10)) (3 3 3 3 3 3 3) ; the same number
(defn replicate "DEPRECATED: Use 'repeat' instead. Returns a lazy seq of n xs." {:added "1.0" :deprecated "1.3"} [n x] (take n (repeat x)))
Comments top
No comments for replicate. Log in to add a comment.