RosettaCodeData/Task/Palindrome-detection/PowerShell/palindrome-detection-1.psh
2023-07-01 13:44:08 -04:00

5 lines
161 B
Text

Function Test-Palindrome( [String] $Text ){
$CharArray = $Text.ToCharArray()
[Array]::Reverse($CharArray)
$Text -eq [string]::join('', $CharArray)
}