Tuesday, May 27, 2025

AND is true and OR is false: discuss

And :: [Bool] -> Bool

And [] = True

And (False:_) = False

And (True:xs) = And xs


Or is an exercise for the reader.

No comments:

Post a Comment

Comments are moderated. Keep it polite and no gratuitous links to your business website - we're not a billboard here.