Skip to content

Instantly share code, notes, and snippets.

@ddeaguiar
Created January 24, 2014 00:03
Show Gist options
  • Save ddeaguiar/8589440 to your computer and use it in GitHub Desktop.
Save ddeaguiar/8589440 to your computer and use it in GitHub Desktop.
(defn fetch-col [] (range 100))
(defn less-than-30? [x]
(> 30 x))
(defn filter-col [a]
(filter #(every? true? ((juxt less-than-30? odd?) %)) a))
(defn report-results [col]
(println col)
col)
(-> (fetch-col)
filter-col
report-results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment