Hi all, To fold operations from right to left, accumulate what calculations should be done in a list with *cons* in order (Thanks Tassilo) and *comp*ose accumulated functions manually (Thanks Meikel, almost equivalent to using Tassilo's *comp** I think) without reverse.
First, the initial topic *fold-right* and its family *reduce-right:* https://gist.github.com/2893987 Next, my abstraction for folding-from-right-loops *r-reduce:* https://gist.github.com/2896939 Last, related function *unfold*: https://gist.github.com/2901487 Have changed not to need large stack. Have become very faster. Still need little bit of heap. Regards, Yoshinori Kohyama -- 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