Mega Code Archive
Categories
/
Ruby
/
String
Map chars in a string
p "hello".chars.map {|c| c.succ } # => ["i", "f", "m", "m", "p"]