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: and
Type: [Bool] -> Bool
Description: returns the conjunction of a Boolean list, the result can be True only for finite lists
Related: (&&), all, any, elem, not, notElem, or, (||)
Keywords: boolean, list calculation

Example 1

Input: and [True,True,False,True]

Output: False

Example 2

Input: and (take 10 (repeat True))

Output: True