actually rhickey showed up on irc and pointed something out: 15:23 rhickey : user=> (.contains [1 2 3] 2) 15:23 rhickey : true 15:23 rhickey : user=> (.contains '(1 2 3) 2) 15:23 rhickey : true 15:23 rhickey : what contains debate? :)
so because seqs, vectors, etc are java collections user=> (.contains (map #(.getName %) (.getMethods (class (seq [:a])))) "contains") true http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html On Thu, Jan 29, 2009 at 3:38 PM, Jason Wolfe <jawo...@berkeley.edu> wrote: > > > In that case, it makes me think of the degenerate example (I realize > > this is slightly stupid): > > > > (some #{false} (list false)) > > Maybe this is an argument for adding "any?" to the list of core > functions? > > -Jason > > > -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---