let thread (let->)
threaded let binding with intermediate value access
Usage:
(let-> [binding-name initial-value] forms*)
A threaded let binding that threads the bound value through each form by name. Each form receives the current value of the binding and the result becomes the new value of the binding.
An Example
(let-> [x 10]
(+ x 5)
(\* x 2)
(/ x 2))
Another Example
(let-> [user {}]
(assoc user (:name . "John"))
(assoc user (:age . 25))
(assoc user (:status . "active")))