summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/boot.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj
index ca04ebe9..de1e8715 100644
--- a/src/clj/clojure/boot.clj
+++ b/src/clj/clojure/boot.clj
@@ -1288,7 +1288,7 @@
there are fewer than n."
[n coll]
(when (and (pos? n) (seq coll))
- (lazy-cons (first coll) (take (dec n) (rest coll)))))
+ (lazy-cons (first coll) (when (> n 1) (take (dec n) (rest coll))))))
(defn take-while
"Returns a lazy seq of successive items from coll while