RosettaCodeData/Task/Palindrome-detection/Elixir/palindrome-detection.elixir

4 lines
94 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
defmodule PalindromeDetection do
def is_palindrome(str), do: str == String.reverse(str)
end