map toUpper (Data.Char)
Case conversion.
Syntax
map toUpper s // map toLower s
Description
toUpper/toLower converts a single character; applied to every letter of the text with map. Imported from Data.Char.
Example
Loading editor…
Expected output
HEXLIBRARY
When to use?
Uppercase/lowercase normalization.
Common mistakes
- ⚠️ toUpper cannot be found without import Data.Char.