aboutsummaryrefslogtreecommitdiff
path: root/src/clojure
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure')
-rw-r--r--src/clojure/contrib/expect/util.clj8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/clojure/contrib/expect/util.clj b/src/clojure/contrib/expect/util.clj
index a5b018c1..14bd6d16 100644
--- a/src/clojure/contrib/expect/util.clj
+++ b/src/clojure/contrib/expect/util.clj
@@ -9,13 +9,7 @@
(when more
(list* `assert-args fnname more)))))
-(defn indexes
- "Returns a lazy sequence of the indexes in coll for which the element
-is equal to v."
- [coll v]
- (map #(first %) (filter (fn [[i el]] (= el v)) (indexed coll))))
-
(defn index-of
"Returns the first index of value v in the collection or nil."
[coll v]
- (first (indexes coll v)))
+ (first (positions v coll)))