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

4 lines
94 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
defmodule PalindromeDetection do
def is_palindrome(str), do: str == String.reverse(str)
end