casefold
Converts a String to a case-agnostic comparable string.
casefold is preferred over string.lowercase when two
strings are to be compared for equality.
gleam add casefold@1
import casefold.{casefold}
pub fn main() -> Nil {
assert casefold("Ω and ẞ SHARP S") == "ω and ss sharp s"
}
Further documentation can be found at https://hexdocs.pm/casefold.
Development
gleam build # Build the project
gleam test # Run the tests