aboutsummaryrefslogtreecommitdiff
path: root/alleq.hs
blob: 7080614c42e2c799e2caf4e58ca4ce17d40aebf8 (plain)
1
2
3
4
5
6
alleq :: Eq a => [a] -> Maybe a -> Bool
alleq [] _ = True
alleq (h:t) Nothing = alleq t (Just h)
alleq (h:t) (Just e)
	| h == e = alleq t (Just e)
	| True = False