OK. I\'ve been tinkering with Clojure and I continually run into the same problem. Let\'s take this little fragment of code:
(let [x 128] (while (> x 1)
You could more idiomatically use iterate and take-while instead,
iterate
take-while
user> (->> 128 (iterate #(/ % 2)) (take-while (partial < 1))) (128 64 32 16 8 4 2) user>