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
Post a Comment