title: Erlang Split a Tuple
body: <p>I want to call map on a dict and get a list of their values back. Erlang doesn't have that built into the dict module, so here is how I'm getting around that:</p>
  
  <pre><code>Fn = fun(Tuple) -&gt;
    [Key, Value] = Tuple,
    string:join([Key, Value], "=")
  end,
  lists:map(Fn, dict:to_list(Dict)).
  </code></pre>
  
  <p>The problem is that Key and Value are then getting assigned multiple times. How can I "split" the key/value tuple that is returned by <code>dict:to_list</code> inside of the anonymous function's call to <code>string:join</code>?</p>