isPalindrome function

bool isPalindrome(
  1. String input
)

Checks if the given string is a palindrome.

Implementation

bool isPalindrome(String input) {
  String reversed = reverse(input);
  return input == reversed;
}