Mega Code Archive

 
Categories / Ruby / String
 

Switch an English alphabet list that starts with lowercase first to a string that starts with uppercase first

puts "aAbBcCdDeEfFgGhHiI".swapcase