Skip to content

Instantly share code, notes, and snippets.

@digitalBush
Created November 19, 2011 02:32
Show Gist options
  • Save digitalBush/1378344 to your computer and use it in GitHub Desktop.
Save digitalBush/1378344 to your computer and use it in GitHub Desktop.
Vowel Histogram
let histogram (str:string)=
str.ToCharArray()
|> Seq.map(fun x-> Char.ToLower(x))
|> Seq.filter(fun x-> vowels.IndexOf(x)>=0)
|> Seq.countBy(fun x-> x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment