ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: or
Type: [Bool] -> Bool
Description: returns the disjunction of a Boolean list, the result can be True only for finite lists
Related: (&&), all, and, any, elem, not, notElem, (||)
Keywords: boolean, list calculation, or

Example 1

Input: or [True,True,False,True]

Output: True

Example 2

Input: or (take 10 (repeat False))

Output: False