title: How to turn a list of objects into a map of two fields in Scala
body: <p>I'm having a real brain fart here. I'm working with the Play Framework. I have a method which takes a map and turns it into a HTML select element. I <em>had</em> a one-liner to take a list of objects and convert it into a map of two of the object's fields, <code>id</code> and <code>name</code>. However, I'm a Java programmer and my Scala is weak, and I've only gone and forgotten the syntax of how I did it.</p>
  
  <p>I had something like</p>
  
  <pre><code>organizations.all.map {org =&gt; /* org.prop1, org.prop2 */ }
  </code></pre>
  
  <p>Can anyone complete the commented part?</p>