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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -