trim
lib.trim
Docs pulled from | This Revision | 38 minutes ago
Remove leading and trailing whitespace from a string s.
Whitespace is defined as any of the following characters: " ", "\t" "\r" "\n"
Inputs
s- The string to trim
Type
trim :: String -> String
Examples
lib.strings.trim usage example
trim " hello, world! "
=> "hello, world!"