RosettaCodeData/Task/Reverse-a-string/PowerShell/reverse-a-string-8.ps1
2026-04-30 12:34:36 -04:00

3 lines
105 B
PowerShell

$a = 'abc 🐧 def'
$enum = $a.EnumerateRunes() | % { "$_" }
-join $enum[$enum.length..0] # fed 🐧 cba