Add Reverse-String cmdlet
Votes from Connect: 9
Original Date Submitted: 7/16/2015 4:32:00 PM
Site Name: PowerShell
Feedback ID: 1551725
it would be nice to have a Reverse-String cmdlet. One that takes a string and reverse it. For example, "asdf" becomes "fdsa".
It could be aliased to rs (for reverse-string).
The reverse method for [array] is ok, but having a cmdlet and/or a [string] method. would be better.
Other well-known languages have routines for this:
For instance in Perl 6 you have the flip routine, which returns the string reversed character by character.
"Perl".flip; # lreP
"ABBA".flip; # ABBA
Ruby has a reverse method:
str = "asdf"
reversed = str.reverse
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1551725 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1551725).
Internal BugId: 15651