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

4 lines
105 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
$a = 'abc 🐧 def'
$enum = $a.EnumerateRunes() | % { "$_" }
-join $enum[$enum.length..0] # fed 🐧 cba