Haskell Language Checking If Empty


Example

We use the null function to check if a given Map is empty:

> Map.null $ Map.fromList [("Alex", 31), ("Bob", 22)]
False

> Map.null $ Map.empty
True