On Fri, Jan 23, 2009 at 2:32 PM, Mark Volkmann <r.mark.volkm...@gmail.com>wrote:

>
> This must be something I learned months ago and then forgot ...
> embarassing!
> What's the easiest way to determine if a sequence contains a given value?
> I thought there would be something like this: (include? [2 4 7] 4) -> true
> That doesn't exist.
> I know I can do this: (some #{4} [2 4 7])
> Having to create a set seems overkill.
>

user=> (contains? [1 2 3] 1)
true

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to