summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-07-04 12:27:53 +0000
committerRich Hickey <richhickey@gmail.com>2008-07-04 12:27:53 +0000
commitec26a653dc282328ea30dae6f065523552f05ad0 (patch)
tree1a90bf34c3f98f478a249ed06c520c67dd0f0d57 /src
parent1d5027ce0b18e8c35d630632aade98399b9456fb (diff)
made (drop 0 s) return seq of coll, and drop-while similarly
Diffstat (limited to 'src')
-rw-r--r--src/boot.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot.clj b/src/boot.clj
index d9b12f8e..3970ec14 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -1158,7 +1158,7 @@ not-every? (comp not every?))
[n coll]
(if (and (pos? n) (seq coll))
(recur (dec n) (rest coll))
- coll))
+ (seq coll)))
(defn drop-last
"Return a lazy seq of all but the last n (default 1) items in coll"
@@ -1171,7 +1171,7 @@ not-every? (comp not every?))
[pred coll]
(if (and (seq coll) (pred (first coll)))
(recur pred (rest coll))
- coll))
+ (seq coll)))
(defn cycle
"Returns a lazy (infinite!) seq of repetitions of the items in