View Single Post

   
  #1 (permalink)  
Old 05-07-2008, 10:16 AM
mh@pixar.com
 
Posts: n/a
Default most idiomatic way to iterate over an associative array?

This is what I'm doing now... is there a better way?
It would be great if there were some construct such
as 'for i in x begin ... end;'

i := x.first;
loop
dbms_output.put_line(i);
exit when i = x.last;
i := x.next(i);
end loop;

Many TIA!
Mark


--
Mark Harrison
Pixar Animation Studios
Reply With Quote