Hi, On Sun, Feb 14, 2010 at 06:57:41AM -0800, Glen Rubin wrote:
> howdy clojure folks! I am a noob and trying to do the following: > > Suppose I have 2 collections of numbers: > > (range 1000 2000) (range 100 150) > > > How do I take an element from one collection and test for no remainder > (e.g. (zero? (mod x y)), when dividing by every element of the second > collection, before processing the next item in the first > collection? (let [no-remainder? (fn [item] (every? #(zero? (mod item %)) (range 100 150)))] (filter no-remainder? (range 1000 2000))) Sincerely Meikel -- 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