Mega Code Archive

 
Categories / Ruby / String
 

Splitting up all the individual values and converting them into elements

puts "0123456789".split( // ) # => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]