Apply a callback to an array: Difference between revisions

Line 985:
x(i) := i;
end loop;
i :=0 x.first;
 
-- square array
while i is not null loop
x(i) := x(i + 1)*x(i);
begindbms_output.put_line(x(i));
x(i) := x(i)*x.next(i);
dbms_output.put_line(x(i));
exception
when no_data_found then exit;
end;
end loop;
 
end;
/</lang>
Anonymous user