Nothing is wrong. It is just that we have deprecated our Dict(keys, vals) 
constructor, and plan to remove it in Julia 0.5. In Julia 0.4 the code will 
work, but you will get a deprecation warning.

As the message says you should consider moving to Dict(zip(keys, vals)), 
but unfortuenatly that doesn't work in 0.3, so if you need compatibility 
(without deprecation warnings) things becomes harder.

Ivar

kl. 16:33:22 UTC+1 søndag 30. november 2014 skrev paul analyst følgende:
>
> What wrong ?
>
>
> julia> s=slo[1:10,:]
> 10x2 Array{Any,2}:
>  "a"           "a"
>  "aa"          "aa"
>  "AA"          "AA"
>  "aa"          "ad acta"
>  "Aachen"      "Aachen"
>  "Aalborg"     "Aalborg"
>  "Aalborgach"  "Aalborg"
>  "Aalborgami"  "Aalborg"
>  "Aalborgi"    "Aalborg"
>  "Aalborgiem"  "Aalborg"
>
> julia> D=Dict(s[:,1],s[:,2])
> WARNING: (Dict{K,V})(ks::AbstractArray{K},vs::AbstractArray{V}) is 
> deprecated, use (Dict{K,V})(zip(ks,vs)) instead
> .
>  in call at deprecated.jl:26
> Dict{Any,Any} with 9 entries:
>   "Aachen"     => "Aachen"
>   "Aalborg"    => "Aalborg"
>   "Aalborgach" => "Aalborg"
>   "AA"         => "AA"
>   "Aalborgiem" => "Aalborg"
>   "Aalborgami" => "Aalborg"
>   "aa"         => "ad acta"
>   "a"          => "a"
>   "Aalborgi"   => "Aalborg"
>
> --------------------------------------------------------------------------------------------------
>  
>               _
> Win7
>    _       _ _(_)_     |  A fresh approach to technical computing
>   (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
>    _ _   _| |_  __ _   |  Type "help()" for help.
>   | | | | | | |/ _` |  |
>   | | |_| | | | (_| |  |  Version 0.4.0-dev+1642 (2014-11-17 08:38 UTC)
>  _/ |\__'_|_|_|\__'_|  |  Commit aa1f53b (13 days old master)
> |__/                   |  x86_64-w64-mingw32
>
>

Reply via email to