Skip to content

Instantly share code, notes, and snippets.

@tibbe
Created September 7, 2010 17:02
Show Gist options
  • Save tibbe/568665 to your computer and use it in GitHub Desktop.
Save tibbe/568665 to your computer and use it in GitHub Desktop.
member :: Int -> [Int] -> Bool
member n = go
where
go [] = False
go (x:xs)
| x == n = True
| otherwise = go xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment