Creating NamedTuple from exisiting NamedTuples using their keys and values?

NamedTuple{keys(p)}(values(q)) should do the trick.

2 Likes