Skip to content

Instantly share code, notes, and snippets.

@mdemare
Created November 12, 2009 22:05
Show Gist options
  • Save mdemare/233344 to your computer and use it in GitHub Desktop.
Save mdemare/233344 to your computer and use it in GitHub Desktop.
((comp
#(reduce (fn [sum i] (+ sum i)) 0 %)
(fn [s] (filter #(= 1 (mod % 2)) s))
(fn [s] (map #(count (.split % " ")) s))
(fn [s] (remove #(re-find #"^#" %) s))
#(.split % "\n"))
text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment