How to square an array of numbers in ruby without `map` or `collect` methods?
<p>This is code I currently have</p>

<pre><code>def square_array(array)
    array.each do |i|
      i ** 2
    end
end
</code></pre>

<p>I know it's not correct, could someone explain this process to me please?</p>