title: How do you do a for-loop in pact?
body: <p>I'd like to loop over an array of values. Something like </p>
  
  <pre><code>for each foo in bar[] do
  {
  foo.doSomething
  }
  </code></pre>
  
  <p>How do I do this in pact? </p>
  
  <p>I see in your todomvc example that you get a value back from the blockchain and use map within the react framework to effectively iteratate through this</p>
  
  <p><a href="https://github.com/kadena-io/pact-todomvc/blob/master/src/components/todo-app.jsx#L94" rel="nofollow noreferrer">https://github.com/kadena-io/pact-todomvc/blob/master/src/components/todo-app.jsx#L94</a></p>
  
  <p>But can you do this within the pact language itself? Something akin to a cursor function in Oracle PL/SQL </p>