Skip to content

Instantly share code, notes, and snippets.

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