Open
Description
While I personally do not have a realworld problem for this request, it's a common coding challenge method, and Ruby has String#swapcase
"abc".swapcase # => "ABC"
'a'.swapcase # => 'A'
"aBC".swapcase # => "Abc"
Does not break backwards compatibility, and improves compatibility when translating from Ruby.
Would be nice to make a search if #swapcase is used in any real world Ruby projects.
There have been varying opinions about it in the past about both its usefulness and whether the library should implement "nice to have" trivial methods like this.
Activity