diff options
author | Aaron Bedra and Stuart Halloway <pair@thinkrelevance.com> | 2009-08-25 21:11:59 -0400 |
---|---|---|
committer | Aaron Bedra and Stuart Halloway <pair@thinkrelevance.com> | 2009-08-25 21:11:59 -0400 |
commit | 1640c0433e35cf9a60e1483424c0a2a8ca56b730 (patch) | |
tree | 9ca74826e518cef7cccbdfe509c93babc4b69867 /src/clojure/contrib/expect/util.clj | |
parent | 3a220e3af24bd5bd30869a112c7210a888ea6dc4 (diff) |
positions takes only a predicate, per Rich's feedback
Diffstat (limited to 'src/clojure/contrib/expect/util.clj')
-rw-r--r-- | src/clojure/contrib/expect/util.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clojure/contrib/expect/util.clj b/src/clojure/contrib/expect/util.clj index 14bd6d16..6b834570 100644 --- a/src/clojure/contrib/expect/util.clj +++ b/src/clojure/contrib/expect/util.clj @@ -12,4 +12,4 @@ (defn index-of "Returns the first index of value v in the collection or nil." [coll v] - (first (positions v coll))) + (first (positions #{v} coll))) |