Skip to content

Commit

Permalink
kwargs2dict(): update to 0.7 keyargs type
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Jul 23, 2018
1 parent 234263b commit 7d180e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parameters.jl
Expand Up @@ -112,5 +112,4 @@ The default placeholder value for parameters argument.
"""
const EMPTY_PARAMS = ParamsDict()

kwargs2dict(kwargs::Vector{Any}) =
Dict(Tuple{Symbol,Any}[(convert(Symbol, k), convert(Any,v)) for (k,v) in kwargs])
kwargs2dict(kwargs::Iterators.Pairs{Symbol}) = ParamsDict(kwargs)

0 comments on commit 7d180e6

Please sign in to comment.