Skip to content

Instantly share code, notes, and snippets.

@tibbe
Created September 7, 2010 17:00
Show Gist options
  • Select an option

  • Save tibbe/568664 to your computer and use it in GitHub Desktop.

Select an option

Save tibbe/568664 to your computer and use it in GitHub Desktop.
member :: Int -> [Int] -> Bool
member _ [] = False
member n (x:xs)
| x == n = True
| otherwise = member n xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment