Skip to content

Instantly share code, notes, and snippets.

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