Skip to content

Instantly share code, notes, and snippets.

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