title: Need plain english translation of the following scala snippet
body: <p>I'm new to scala and the playframework.  Can somebody please translate the following snippet below into plain english?  For context its found here: <a href="http://www.playframework.org/documentation/2.0.4/ScalaSecurity" rel="noreferrer">http://www.playframework.org/documentation/2.0.4/ScalaSecurity</a></p>
  
  <pre><code>/**
   * This method shows how you could wrap the withAuth method to also fetch your user
   * You will need to implement UserDAO.findOneByUsername
   */
  def withUser(f: User =&gt; Request[AnyContent] =&gt; Result) = withAuth { username =&gt; implicit request =&gt;
    UserDAO.findOneByUsername(username).map { user =&gt;
      f(user)(request)
    }.getOrElse(onUnauthorized(request))
  }
  </code></pre>