title: What is the difference between using a unit and not using one?
body: <p>I am curious as to what is the major significance, if any in regards to taking a unit or not in code similar to below. What are the advantages or disadvantages. To my current understanding, taking a unit will implement a function that returns a value while not taking one just simply represents the value. Looking for some clarity here.</p>
  
  <p>code without Unit:</p>
  
  <pre><code>    let consumerKey = 
  
          // retrieve keys
          query{
              for row in db.Keys do
              select {
                  consumerKey = row.ConsumerKey;
                  consumerSecret = row.ConsumerSecret
              }
              exactlyOneOrDefault
          }
  </code></pre>
  
  <p>code with Unit:</p>
  
  <pre><code>    let consumerKey() = 
  
          // retrieve keys
          query{
              for row in db.Keys do
              select {
                  consumerKey = row.ConsumerKey;
                  consumerSecret = row.ConsumerSecret
              }
              exactlyOneOrDefault
          }
  </code></pre>