title: How to repeat without using "for" or "while" or "repeat" functions?
body: <p>Is there a function that can repeat a segment of code for a given number of times?</p>
  
  <p>for example:</p>
  
  <pre><code>t= 0; 
  while (t&lt; 10) 
    if x==2 
      x=1 
    else 
      x=3; 
    end 
  end
  </code></pre>
  
  <p>How can i rewrite this function using another function ?</p>