mirror of
https://github.com/MillironX/XAM.jl.git
synced 2024-11-14 22:33:14 +00:00
Use broadcast
This commit is contained in:
parent
08e253c297
commit
cc2af1976b
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ function keyvalues(metainfo::MetaInfo)::Vector{Pair{String,String}}
|
||||||
if iscomment(metainfo)
|
if iscomment(metainfo)
|
||||||
throw(ArgumentError("not a dictionary"))
|
throw(ArgumentError("not a dictionary"))
|
||||||
end
|
end
|
||||||
return Pair{String,String}[key => val for (key, val) in zip(keys(metainfo), values(metainfo))]
|
return Pair{String, String}.(keys(metainfo), values(metainfo))
|
||||||
end
|
end
|
||||||
|
|
||||||
function Base.keys(metainfo::MetaInfo)
|
function Base.keys(metainfo::MetaInfo)
|
||||||
|
|
Loading…
Reference in a new issue