Shortest way to reverse a string in programming languages
6 comments
As usual, APL wins: ⌽'string' . In J that's |.'string' .
See http://rosettacode.org/wiki/Reverse_a_string for plenty of other examples.
See http://rosettacode.org/wiki/Reverse_a_string for plenty of other examples.
Interesting, how would one go about finding ⌽ on a keyboard.
In the usual way, of course.
if length of the string is 1, this may shorten some answers, no?
Can your's do better? Better here is "shorter"