1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-12-25 06:08:19 +00:00

Use broadcast

This commit is contained in:
Ciarán O'Mara 2020-03-21 12:52:03 +11:00
parent 08e253c297
commit cc2af1976b

View file

@ -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)