Shortest way to reverse a string in programming languages

2 points by aligajani ↗ HN
My vote goes to Python: [::-1]

Can your's do better? Better here is "shorter"

6 comments

[ 5.1 ms ] story [ 26.5 ms ] thread
if length of the string is 1, this may shorten some answers, no?
Well, in Python the reversing is as short as a print
Sure...same as if the cow is spherical.