RosettaCodeData/Task/Reverse-a-string/PowerShell/reverse-a-string-8.psh
2023-07-01 13:44:08 -04:00

3 lines
105 B
Text

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