"Andreas Kostler" <andreas.koestler.le...@gmail.com> wrote:
>From "Programming Clojure", Chapter 2 - Bindings: >"The bindings are then in effect for exprs, and the value of the let >is the value of the last expression in exprs." >To me this reads: >user=> (let [k (+ 2 2)]) > 4 > >However, repl says: >user=> (let [k (+ 2 2)]) > nil > >What is it I get wrong? The definition of exprs. Let is (let [bindings] exprs) You have no exprs, so it's nil. Try (let [k (+ 2 2)] k) and (let [k (+ 2 2)] k (* k k)) -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- 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