Skip to content

Instantly share code, notes, and snippets.

@zarinfam
Last active July 16, 2019 08:25
Show Gist options
  • Save zarinfam/4d93f4737bd30340ae3640f5db63b5a2 to your computer and use it in GitHub Desktop.
Save zarinfam/4d93f4737bd30340ae3640f5db63b5a2 to your computer and use it in GitHub Desktop.
isPow2Even :: Integer -> Bool
isPow2Even a = even $ pow2 a --or even (pow2 a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment