return a varray from a function oracle
<p>I want to return a varray from oracle function but I don't know how to do it.
Here is so far what I have tried.</p>

<pre><code>set serveroutput on;
declare
   type array_t is varray(2) of number;
CREATE OR REPLACE FUNCTION func() return array_t
begin
  array array_t :=array_t(0,0);   
  array(1):=3;
  array(2):=20;
  return array;
end;
</code></pre>