Re:C++11 and Boost - Succinct like Python
by ot on Wednesday October 31, 2012 @01:22PM
(#4723994)
list is mutable while str is not. So reverse() should return a new copy, but it would duplicate the functionality of s[::-1] (which is quite idiomatic, although a bit obscure)
It's odd how Python has list.reverse() but not str.reverse(). Probably a conscious design decision sometime ago.