mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 17:15:01 -06:00
12 lines
228 B
PowerShell
12 lines
228 B
PowerShell
Function Get-ReverseString {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Position=1, ValueFromPipeline=$true)]
|
|
[string]$Forward
|
|
)
|
|
|
|
$x = $Forward.ToCharArray()
|
|
[array]::Reverse($x)
|
|
return -join $x
|
|
}
|