This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-30
Channels
- # admin-announcements (10)
- # beginners (7)
- # boot (216)
- # cider (10)
- # cljs-dev (3)
- # clojure (71)
- # clojure-denmark (2)
- # clojure-italy (3)
- # clojure-seattle (1)
- # clojurescript (124)
- # cloxp (1)
- # code-reviews (5)
- # core-matrix (2)
- # cursive (34)
- # datomic (3)
- # editors (1)
- # hoplon (201)
- # immutant (2)
- # jobs (3)
- # ldnclj (7)
- # off-topic (3)
- # re-frame (19)
- # reagent (76)
(defn lazy-get
[f x]
(if-let [result (f x)]
(cons result
(if-let [x' (result :next)]
(lazy-seq (lazy-get f x'))
nil))))
@screamish looks reasonable to me. I didn't know you could use a quote in that context (`x'`). I think usually I would use x*
. But I see no glaring issues.