# How to make a named tuple from a dictionary?

**URL:** <https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899>\
**Category:** General Usage\
**Tags:** dictionary, namedtuple\
**Created:** [May 15, 2018, 2:30am UTC](https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899 "2018-05-15T02:30:13Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [January 25, 2019, 11:04am UTC](https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899/10 "2019-01-25T11:04:45Z")

</div>

Tada:

```julia
julia> (; Dict(:a => 5, :b => 6, :c => 7)...)
(a = 5, b = 6, c = 7)

```

(Edit: note, that this already worked in Julia 0.7 when NamedTuples first appeared. Sometimes it just takes a bit longer to find the best solution…)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899)._
