title: How to pass a loop cursor (current row) to another function/procedure?
body: <p>I have to built some code around a loop and it's going to be huge. To make not more enemies than necessary I want to split up my code for the sake of readability.</p>
  
  <p>My code looks like that:</p>
  
  <pre><code>FOR cur_tblA IN (SELECT col1, col2 FROM tblA) LOOP
    -- a lot of stuff
    NULL;
  END LOOP;
  </code></pre>
  
  <p>Because the second line in real life is really a lot I want to pass my cursor <code>cur_tblA</code> to other functions. I expect that the value of <code>cur_tblA</code> is the current row and I can access the values like <code>cur_tblA.col1</code> etc. in my other function/procedure:</p>
  
  <pre><code>FUNCTION do_stuff(cur_tblA) RETURN VARCHAR2 AS BEGIN
      return cur_tblA.col1;
  END do_stuff;
  </code></pre>
  
  <p>What is the right type for the signature for receiving<code>cur_tblA</code>?</p>