3 ms·
There is a list-reverse that changes the list and returns None but maybe the reason there isn't one for strings are because they are immutable while lists are m
by schtog 18y ago
There is a list-reverse that changes the list and returns None but maybe the reason there isn't one for strings are because they are immutable while lists are mutable.
- BrandonM 18y agoThat's a good point. I was thinking more along the lines, though, that there are some times where you actually need to reverse a list. How often does it make sense to reverse a string? When palindrome testing?