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

4 lines
105 B
PowerShell
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
$a = 'abc 🐧 def'
$enum = $a.EnumerateRunes() | % { "$_" }
-join $enum[$enum.length..0] # fed 🐧 cba