title: Best way to iterate over an array and call functions in coffeescript
body: <p>I have this code in coffescript</p>
  
  <pre><code>copy pages.template  for pages in configFiles.pages
  </code></pre>
  
  <p>That generates this code in java script</p>
  
  <pre><code>var pages, _i, _len, _ref;
  
  _ref = configFiles.pages(function() {});
  for (_i = 0, _len = _ref.length; _i &lt; _len; _i++) {
    pages = _ref[_i];
    copy(pages.template);
  }
  </code></pre>
  
  <p>But what I want is to call 2 more functions inside the for like this:</p>
  
  <pre><code>var pages, _i, _len, _ref;
  
  _ref = configFiles.pages(function() {});
  for (_i = 0, _len = _ref.length; _i &lt; _len; _i++) {
    pages = _ref[_i];
    copy(pages.template);
    copy2(pages.template);
    copy3(pages.template);
  }
  </code></pre>
  
  <p>I don't know if this is a good practice or not. I am new in the programming world. 
  If it is how can I do this in coffeescript ? If not what is the best solution ?</p>
  
  <p>Thanks</p>