summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bedra <aaron@aaronbedra.com>2010-09-30 23:57:33 -0400
committerStuart Halloway <stu@thinkrelevance.com>2010-10-11 09:19:41 -0400
commit0456649282c4e3f298a5c75af2f979b8001e977a (patch)
tree2a593e88fab2025358afd504afba2c1f21d13374
parent617a067d364aa39dc4e77c622de9287024757e6e (diff)
Deprecating replicate. Original patch supplied by bsteuber.
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
-rw-r--r--src/clj/clojure/core.clj5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index 390b8fd2..557c07f9 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -2491,9 +2491,10 @@
([n x] (take n (repeat x))))
(defn replicate
- "Returns a lazy seq of n xs."
+ "DEPRECATED: Use 'repeat' instead.
+ Returns a lazy seq of n xs."
{:added "1.0"
- :static true}
+ :deprecated "1.3"}
[n x] (take n (repeat x)))
(defn iterate