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
Operator: (&&)
Type: Bool -> Bool -> Bool
Priority: 3
Description: logical and
Related: all, and, any, elem, not, notElem, or, (||)
Keywords: and, boolean

Example 1

Input: True && True

Output: True

Example 2

Input: True && False

Output: False

Example 3

Input: 1 `elem` [1,2,3,4] && odd 3

Output: True