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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -