RosettaCodeData/Task/Reverse-a-string/PowerShell/reverse-a-string-8.psh

4 lines
105 B
Plaintext

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