Can you destructure a function parameter but still have the original available for use? The way I’m doing it now is just using a let form inside the function body, but I wondering if there was a terser way of doing it.
Can you destructure a function parameter but still have the original available for use?
Share
Seems like
:asworks for functions too:with
vectorwith
hash-mapSee this terrific blog post: http://blog.jayfields.com/2010/07/clojure-destructuring.html