title: julia - How to find the key for the min/max value of a Dict?
body: <p>I want to find the key corresponding to the min or max value of a dictionary in julia. In Python I would to the following:</p>
  
  <pre><code>my_dict = {1:20, 2:10}
  min(my_dict, my_dict.get)
  </code></pre>
  
  <p>Which would return the key 2.</p>
  
  <p>How can I do the same in julia ?</p>
  
  <pre><code>my_dict = Dict(1=&gt;20, 2=&gt;10)
  minimum(my_dict)
  </code></pre>
  
  <p>The latter returns 1=>20 instead of 2=>10 or 2.</p>