diff --git a/isPalindrome b/isPalindrome new file mode 100644 index 0000000..f6678fd --- /dev/null +++ b/isPalindrome @@ -0,0 +1,14 @@ +namespace Algorithms.Strings + +module IsPalindrome = + /// + /// Determine whether the string is palindrome + /// + let isPalindrome (str: string): bool = + let str = + str.ToLower() + |> Seq.filter (System.Char.IsLetterOrDigit) + |> Seq.toList + + + str = (str |> List.rev)