Showing posts with label functional programming. Show all posts
Showing posts with label functional programming. Show all posts

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.