title: Are functions in Rust first class objects?
body: <p>Can functions be passed as arguments? For example, in JavaScript you can pass a function as an argument like this:</p>
  
  <pre><code>setInterval(function() { /*...*/ }, 1000);
  </code></pre>