mapping values

I am thinking about smthing like this:

You might think about something that actually compiles, instead. == instead of = in some places, too.