Construct an immutable type from a Dict

This works:

julia> using Parameters

julia> @with_kw struct A
       a
       b
       end
A

julia> A(;Dict(:a=>1, :b=>3)...)
A
  a: Int64 1
  b: Int64 3

Does this cover your use-case?

3 Likes