Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # some-> Nested when/let can be converted to some→ <code clojure> ;;; Don't (when-let [x1 (f0 x0)] (when-let [x2 (f1 x1)] (when-let [x3 (f2 x2)] (f3 x3)))) ;;; Do (some-> x0 f0 f1 f2 f3) </code> <code clojure> ;;; Don't (let [x (if (nil? x) nil (x f0)) x (if (nil? x) nil (x f1)) x (if (nil? x) nil (x f2))] (if (nil? x) nil (f3 x))) ;;; Do (some-> x0 f0 f1 f2 f3) </code> open/thread-some.txt Last modified: 2024/10/05 06:15by 127.0.0.1