Ask HN: Any exemplary PHP codebases out there?
1 pointsby EvilTerran2 comments
and, or :: [Bool] -> Bool
and = foldr (&&) True
or = foldr (||) False
... as they can both "bail out early" without evaluating the entire list (if they find a False or a True, respectively).