Adding a 'contains?' example to the vector topic

I saw there are contains? examples for map already.
This commit is contained in:
Attila Domokos 2013-11-19 13:41:14 -06:00
parent 0675850ae7
commit 5efed8a00f

View file

@ -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 __)))