title: Is there a lua equivalent of Scala's map or C#'s Select function?
body: <p>I'm looking for a nice way to do a map / select on a Lua table.</p>
  
  <p>eg. I have a table :</p>
  
  <pre><code>myTable = {
    pig = farmyard.pig,
    cow = farmyard.bigCow,
    sheep = farmyard.whiteSheep,
  }
  </code></pre>
  
  <p>How do I write myTable.map(function(f) f.getName)? [Assuming all farmyard animals have names]</p>
  
  <p>ie. apply the function to all elements in the table.</p>