6 lines
192 B
FSharp
6 lines
192 B
FSharp
isPalindrome "abcba"
|
|
val it : bool = true
|
|
isPalindrome ("In girum imus nocte et consumimur igni".Replace(" ", "").ToLower());;
|
|
val it : bool = true
|
|
isPalindrome "abcdef"
|
|
val it : bool = false
|