# Map over namedtuple keys and values: confusing error

**URL:** https://discourse.julialang.org/t/map-over-namedtuple-keys-and-values-confusing-error/26866
**Category:** General Usage
**Created:** [July 27, 2019, 12:19am UTC](https://discourse.julialang.org/t/map-over-namedtuple-keys-and-values-confusing-error/26866 "2019-07-27T00:19:42Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [September 23, 2019, 6:22am UTC](https://discourse.julialang.org/t/map-over-namedtuple-keys-and-values-confusing-error/26866/6 "2019-09-23T06:22:14Z")

</div>

There a multiple ways of mapping a `NamedTuple`, depending on whether you want the result to be

1. inferred,
2. also `NamedTuple`,
3. with the same keys, or different ones (ie whether those are mapped, too).

Please provide **an MWE, with the desired input and output,** for your specific use case.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/map-over-namedtuple-keys-and-values-confusing-error/26866)._
