This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-19
Channels
- # admin-announcements (27)
- # beginners (12)
- # boot (168)
- # cider (4)
- # clojure (27)
- # clojure-art (3)
- # clojure-austria (1)
- # clojure-russia (10)
- # clojurescript (50)
- # datomic (10)
- # editors (2)
- # hoplon (51)
- # ldnclj (26)
- # liberator (1)
- # off-topic (7)
- # om (23)
- # parinfer (6)
- # proton (7)
- # reagent (17)
- # yada (1)
@trancehime: I believe it’s nil
how would I fix a function like this:
(defn list-of-values
[exps env]
(loop [expressions exps environment env]
(if (nil? expressions)
nil
(cons (my-eval (first expressions) environment)
(recur (rest expressions) environment)))))
or this
(defn wow [x]
(loop [n x]
(if (> n 5)
(conj n (recur (- n 1))))))