RosettaCodeData/Task/String-comparison/Haskell/string-comparison.hs

16 lines
230 B
Haskell
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
> "abc" == "abc"
True
> "abc" /= "abc"
False
> "abc" <= "abcd"
True
> "abc" <= "abC"
False
> "HELLOWORLD" == "HelloWorld"
False
> :m +Data.Char
> map toLower "ABC"
"abc"
> map toLower "HELLOWORLD" == map toLower "HelloWorld"
True