RosettaCodeData/Task/String-comparison/Elixir/string-comparison.ex
2024-10-16 18:07:41 -07:00

9 lines
247 B
Elixir

s = "abcd"
s == "abcd" #=> true
s == "abce" #=> false
s != "abcd" #=> false
s != "abce" #=> true
s > "abcd" #=> false
s < "abce" #=> true
s >= "abce" #=> false
s <= "abce" #=> true