Skip to content

Instantly share code, notes, and snippets.

@cohalz
Last active January 3, 2016 18:19
Show Gist options
  • Save cohalz/8501626 to your computer and use it in GitHub Desktop.
Save cohalz/8501626 to your computer and use it in GitHub Desktop.
let capitalize chr =
let ascii = int_of_char chr in
if ascii > 96 && ascii < 123 then char_of_int(ascii-32) else chr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment