Mega Code Archive

 
Categories / Ruby / String
 

Split one by one

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