Skip to content

Instantly share code, notes, and snippets.

@funrep
Created October 15, 2012 18:00
Show Gist options
  • Save funrep/3894010 to your computer and use it in GitHub Desktop.
Save funrep/3894010 to your computer and use it in GitHub Desktop.
reverseString :: [a,b,c] -> [c,b,a]
reverseString [] error "empty string or list"
reverseString [a,b,c] = [c,b,a]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment