I’m looking for a clean way to convert Dictionaries into NamedTuples.
I found a helpful topic, however, that solution only works for Dicts with symbol keys.
julia> (; Dict(:a => 5, :b => 6, :c => 7)…)
(a = 5, b = 6, c = 7)
When string keys are converted to symbols, the order reverses.
I found a way to solve this, but I expect there is a more clean and efficient way to do this.
Any suggestion?
As a side note, if you do want the keys to be sorted (in insertion order), you can used an OrderedDict or LittleDict from the package OrderedCollections