Jump to content

Reverse a string: Difference between revisions

m
→‎{{header|PowerShell}}: use the same input for all examples
m (→‎{{header|C++}}: minor stylistic changes)
m (→‎{{header|PowerShell}}: use the same input for all examples)
Line 3,456:
{{works with|PowerShell|3}}
<syntaxhighlight lang="powershell">
[Regex]::Matches('abc'$s,'.','RightToLeft').Value -join ''
</syntaxhighlight>
{{Out}}
<pre>
cba
</pre>
 
=={{header|Prolog}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.