title: Can someone explain this Scala map function to calculate the product of a string's unicode
body: <p>I was looking at <a href="https://stackoverflow.com/questions/9519403/how-to-compute-the-product-of-the-unicode-codes-of-all-letters-in-a-string-with">this</a> solution for calculating the product of a string's unicode code points.</p>
  
  <p>One of the answers includes this snippet:</p>
  
  <pre><code>"Hello" map (i =&gt; BigInt(i)) product
  </code></pre>
  
  <p>I had no idea this would compile. Can someone explain to me how this works? Why does it work with the whitespaces? </p>