How to find index in String Array
Version 0.5.0 (2016-09-19 18:14 UTC)
Official http://julialang.org/ release
x86_64-w64-mingw32
julia> userstemp
5-element Array{String,1}:
“aa”
“ab”
“ac”
“ad”
“zz”
julia> indexin(userstemp,“aa”)
ERROR: MethodError: no method matching indexin(::Array{String,1}, ::String)
Closest candidates are:
indexin(::AbstractArray{T,N}, ::AbstractArray{T,N}) at array.jl:1326
julia> in(userstemp,“aa”)
false
julia> findin(userstemp,“aa”)
0-element Array{Int64,1}
julia> findin(userstemp,‘aa’)
ERROR: syntax: invalid character literal
julia> indexin(userstemp,‘aa’)
ERROR: syntax: invalid character literal
Paul