most idiomatic way to iterate over an associative array?

From: <mh_at_pixar.com>
Date: Wed, 07 May 2008 04:51:11 GMT
Message-ID: <3zaUj.14568$V14.4103@nlpi070.nbdc.sbc.com>


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
Received on Tue May 06 2008 - 23:51:11 CDT

Original text of this message