ah, got it. thanks! On Tue, Jun 2, 2009 at 11:48 AM, Stephen C. Gilardi <squee...@mac.com> wrote: > > On Jun 2, 2009, at 11:35 AM, Wilson MacGyver wrote: > >> what I like to know is, how do I filter for with value b is < X > > > You can use destructuring in your predicate's arg list: > > (filter (fn [[_ x]] (< x 10)) *1) > > In English, the function takes an argument which can be accessed > sequentially. Destruture it such that its first two elements are named "_" > (a conventional name for "I don't care") and "x". Then the body of the > predicate can operate on x. > > --Steve > >
-- Omnem crede diem tibi diluxisse supremum. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---