Skip to content

Instantly share code, notes, and snippets.

@marcoscastro
Created December 13, 2014 23:50
Show Gist options
  • Save marcoscastro/3a6fff2e3f0f93383dda to your computer and use it in GitHub Desktop.
Save marcoscastro/3a6fff2e3f0f93383dda to your computer and use it in GitHub Desktop.
Haskell - Função elem
pertence :: Eq a => [a] -> a -> Bool
pertence lista e = elem e lista
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment