This is a more flexible alternative to thread first or thread last. It can be inserted anywhere in the list of parameters of the function.
(as-> [1 2] x
(map #(+ 1 %) x)
(if (> (count x) 2) "Large" "Small"))
This is a more flexible alternative to thread first or thread last. It can be inserted anywhere in the list of parameters of the function.
(as-> [1 2] x
(map #(+ 1 %) x)
(if (> (count x) 2) "Large" "Small"))