On Wed, Jun 29, 2011 at 3:53 AM, Alan Malloy <a...@malloys.org> wrote: > This layout makes it fairly clear that the first element of total- > values is never being used, but it would be nice if we could say so > explicitly. So finally, we can wrap the whole thing in a let: > > (defn calc [total-values daily-values] > (let [interesting-values (next total-values)] > (map-indexed > (fn [i daily] > (->> total-values > (drop i) > (map #(inc (/ % 100.0))) > (reduce * daily))) > daily-values)))
Oops. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- 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