Wow, that some function is just what I'd expect from Clojure, simple, straightforward, elegant. How did I miss it? Thanks all. Tuba
On Jul 18, 11:00 pm, David Nolen <dnolen.li...@gmail.com> wrote: > On Tue, Jul 19, 2011 at 12:48 AM, Tuba Lambanog > <tuba.lamba...@gmail.com>wrote: > > > Hi, > > I'm clear on what I want ;) (something new to me), but I'm not clear on how > > to get there. I'd like to compare str1 and str2, if at least one of the > > letters in str1 is in str2. I'm thinking that if I can convert str1 and str2 > > to sets, then I can use the set intersection operation. It probably doesn't > > matter here if the sets contain characters or symbols? > > Tuba > > Or you could do this: > > (some (set str1) (set str2)) > > David -- 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 Note that posts from new members are moderated - please be patient with your first post. 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