Skip to content

Instantly share code, notes, and snippets.

@joshuashaffer
Created October 15, 2017 16:11
Show Gist options
  • Save joshuashaffer/976ad9c95c7ca73727eec52760b2cc73 to your computer and use it in GitHub Desktop.
Save joshuashaffer/976ad9c95c7ca73727eec52760b2cc73 to your computer and use it in GitHub Desktop.
Is the sum of the ascii character codes odd?
import Data.Char
thatsOdd = odd . sum . map (ord)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment