From 5efed8a00fc0a2361c5c3087ca7f4bd3f10323b3 Mon Sep 17 00:00:00 2001 From: Attila Domokos Date: Tue, 19 Nov 2013 13:41:14 -0600 Subject: [PATCH] Adding a 'contains?' example to the vector topic I saw there are contains? examples for map already. --- src/koans/03_vectors.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/koans/03_vectors.clj b/src/koans/03_vectors.clj index 83e6ef0..c92187d 100644 --- a/src/koans/03_vectors.clj +++ b/src/koans/03_vectors.clj @@ -26,5 +26,8 @@ "You can also slice a vector" (= __ (subvec [:peanut :butter :and :jelly] 1 3)) + "You can find out if a value is in a vector" + (= __ (contains? [1 2 3] 4)) + "Equality with collections is in terms of values" (= (list 1 2 3) (vector 1 2 __)))