julia VA
3-element Array{ASCIIString,1}:
A
B
C
julia VA * T
ERROR: `*` has no method matching *(::Array{ASCIIString,1}, ::ASCIIString)
* only concatenates two Strings, here you have an Array of strings and a
string. You could call join() on your array first or use push!(VA,T) if
you want to add an element to the VA array.
-Jacob
On Jul 24, 2014 11:14 PM, cnbiz850 cnbiz...@gmail.com wrote:
julia VA
3-element
ABC * T
is valid, but
A
B * T
C
is not.
I think you can use push! or something else.
On Fri, Jul 25, 2014 at 11:14 AM, cnbiz850 cnbiz...@gmail.com wrote:
julia VA
3-element Array{ASCIIString,1}:
A
B
C
julia VA * T
ERROR: `*` has no method matching *(::Array{ASCIIString,1},
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 cnbiz...@gmail.com wrote:
Well, * works with numerics
julia A = [1:5]
5-element Array{Int64,1}:
1
2
3
4
5
julia A *3
Just found it works on DataArray:
julia da = DataArray([A, B, C])
3-element DataArray{ASCIIString,1}:
A
B
C
julia da * T
3-element DataArray{Any,1}:
AT
BT
CT
On 2014年07月25日 11:57, cnbiz850 wrote:
That sounds confusing. You just mentioned that Vector{String} is
semantically equivalent