ruby - Array with several strings is concatenated -


array more 1 string separated space produces array 1 concatenated string. imho, should raise syntax error. behavior correct?

["1" "2" "3"] #=> ["123"] 

this has nothing array. feature of string literal. if write string literals in quotes next each other, represents string given concatenation.


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -