wiki:Functions/Or

or

|| is logical OR

in a lazy language or naturally short-circuits.

or []      =  False
or (x:xs)  =  x || or x
or  =  foldr (||) False
Last modified 4 years ago Last modified on Nov 2, 2016, 8:57:12 AM
Note: See TracWiki for help on using the wiki.