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: null
Type: [a] -> Bool
Description: returns True if a list is empty, otherwise False
Related: length
Keywords: empty, list

Example 1

Input: null []

Output: True

Example 2

Input: null [1,2,3]

Output: False

Example 3

Input: null "Hello"

Output: False