> *julia> foo(;kwargs...) = return kwargs*
> *foo (generic function with 1 method)*
>
> *julia> foo(x=1,y=2)*
> *2-element Array{Any,1}:*
> * (:x,1)*
> * (:y,2)*
>
> *julia> d = { :a=> 97, :b => 95 }*
> *Dict{Any,Any} with 2 entries:*
> *  :b => 95*
> *  :a => 97*
>
> *julia> foo(d...)*
> *ERROR: `foo` has no method matching foo(::(Symbol,Int64), 
> ::(Symbol,Int64))*

you need a ;

julia> foo(;d...)
2-element Array{Any,1}:
 (:b,95)
 (:a,97)

Otherwise Julia thinks your splatting non-keyword arguments. I think in
python its * vs **

Reply via email to