Arrays of strings aren’t part of a vector space. There’s no reason you should be able to multiply them by a scalar.
— John On Jul 24, 2014, at 8:45 PM, cnbiz850 <[email protected]> wrote: > Well, * works with numerics > > julia> A = [1:5] > 5-element Array{Int64,1}: > 1 > 2 > 3 > 4 > 5 > julia> A *3 > 5-element Array{Int64,1}: > 3 > 6 > 9 > 12 > 15 > > And for strings, the following works: > > julia> VA > 3-element Array{ASCIIString,1}: > "A" > "B" > "C" > julia> VB = ["a", "b", "c"] > 3-element Array{ASCIIString,1}: > "a" > "b" > "c" > julia> VA .* VB > 3-element Array{ASCIIString,1}: > "Aa" > "Bb" > "Cc" > > So likewise, it is better that VA * "T" should work too.
