Hi Mark, set takes a single argument, a coll, and #{} is a literal form that can have a variable number of args.
To make them equivalent: (set "aeiou") -> #{\a \e \i \o \u} #{(seq "aeiou")} -> #{(\a \e \i \o \u)} Stuart > > On Fri, Jan 23, 2009 at 2:51 PM, Chouser <chou...@gmail.com> wrote: >> >> On Fri, Jan 23, 2009 at 3:47 PM, Mark Volkmann >> <r.mark.volkm...@gmail.com> wrote: >>> >>> (contains? "aeiou" letter) >>> >>> but that doesn't work either. >> >> user=> (some (set "aeiou") "dn'tndthsstinkngvwls") >> \i > > Why does this work > > (some (set "aeiou") "e") > > but this doesn't > > (some #{"aeiou"} "e") > > I thought (set ...) was equivalent to #{...}. > >> Or, if you must, >> >> user=> (clojure.contrib.seq-utils/includes? "aeiou" \o) >> true > > -- > R. Mark Volkmann > Object Computing, Inc. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---