On Dec 16, 8:13 am, Laurent PETIT <laurent.pe...@gmail.com> wrote: > 2009/12/15 DTH <dth...@gmail.com> > > > > (return-fn (some predicate-fn (iterate recur-fn a0))) > > > would seem equivalent, though I doubt I'd have got there without your > > stepwise guide to change the way I was thinking about it. > > No, some does not work here. Dean gave the final word, I think, by reminding > us of filter. > > some does not work because it will return the result of applying > predicate-fn to the item, but we want the item "intact" in order to apply > return-fn to it. >
Gah, of course; my toy implementation of f6? happened to return the argument when logical true, which made it appear to work; I completely forgot that `some` itself was not handling this. I read both Sean's response and your note on some while both my original messages were in moderation, and couldn't face sending another "badger, got that one wrong..." email on the heels of the first two... Cheers, -Dave -- 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