Skip to content

Instantly share code, notes, and snippets.

@klapaucius
Created November 26, 2011 15:12
Show Gist options
  • Save klapaucius/1395831 to your computer and use it in GitHub Desktop.
Save klapaucius/1395831 to your computer and use it in GitHub Desktop.
foo :: Eq a => [a] -> Bool
foo (x:y:_) = x == y
foo [_] = foo ([] :: [a])
foo [] = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment