A Neat Pattern With Juxt

August 10, 2015
clojure

I recently added the function juxt to my toolbox in Clojure.

A good pattern I've discovered is using juxt to perform operations on a data structure and destructuring its return value.

```clojure (defn read-files [^String path] (let [data-files (find-data-files path) [prices receipts] ((juxt find-prices-file find-receipt-files) data-files)] {:prices (read-prices prices) :receipts (apply merge (read-receipts receipts))})) ```

When to use loop/recur in Clojure?

January 21, 2019
clojure

Clojure Web Frameworks And Comparisons

May 14, 2017
clojure

What Editor/IDE Should You Use For Clojure?

April 22, 2017
clojure