title: Is there a way to use for-each function in vectors as it is used in Lists in Scheme
body: <p>In scheme when working with Lists, one can easily use <code>for-each</code>. I have used it in the following code.</p>
  <pre><code>(for-each (lambda (arg)
            (diplayln arg)
  </code></pre>
  <p>and the output is</p>
  <pre><code>1
  
  2
  
  3
  
  4
  </code></pre>
  <p>I want to use the same analogy for vectors, am implementing a function <code>vector-for-each</code></p>
  <p>such that <code>(vector-for-each display (vector &quot;red&quot; &quot;orange&quot;))</code>. The output should be <code>&quot;red&quot; &quot;orange&quot;</code>.</p>
  <p>What is the best way of implementing <code>for-each</code> for vectors in scheme?</p>