title: How to implement a For loop in Clojure
body: <p>I'd like to implement this little code in Clojure, but I am struggling:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>struct mystruct {
     int id;
     int price;
  };
  
  mystruct mydata[10];
  
  for (int i=0; i&lt;10; i++) {
    myfunction(mydata[i].id, mydata[i].price);
    //other things...
  }
  </code></pre>
  
  <p>I am a beginner with Clojure and it's really complicated for me to do something simple like this, but I am really trying to learn as much as possible as I know that there are great advantages with Clojure such as using refs...</p>
  
  <p>I would really appreciate it if somebody could help me. Thanks!!</p>