On Fri, Nov 26, 2010 at 5:28 PM, tpeng <[email protected]> wrote: > but this foldr can't handle the infinite list, am i right? >
I doubt there is a foldr that handles the infinite list. To do anything, it would have to read at least one element: the last. Alex nice answer is a foldl. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
