Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ponzao
Created May 21, 2014 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponzao/7399c08bb3b40d349289 to your computer and use it in GitHub Desktop.
Save ponzao/7399c08bb3b40d349289 to your computer and use it in GitHub Desktop.
(def vowels
#{\a \e \i \o \u})
(defn count-vowels
[s]
(count (keep vowels (.toLowerCase s))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment