ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
Module: | Prelude |
---|---|
Function: | elem |
Type: | Eq a => a -> [a] -> Bool |
Description: | returns True if the list contains an item equal to the first argument |
Related: | (&&), all, and, any, not, notElem, or, (||) |
Input: elem 1 [1,2,3,4,5]
Output: True
Input: 14 `elem` [1..10]
Output: False
Input: 'o' `elem` "Zvon"
Output: True