Skip to content

Instantly share code, notes, and snippets.

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