From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b4a4dceda94869d2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.59.229 with SMTP id c5mr1713976pbr.6.1320787523340; Tue, 08 Nov 2011 13:25:23 -0800 (PST) MIME-Version: 1.0 Path: h5ni13974pba.0!nntp.google.com!news2.google.com!news4.google.com!fu-berlin.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Iterators in Ada2012 Date: Tue, 8 Nov 2011 15:25:19 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <66dbca36-0248-458a-aff4-1176d6ce098b@m10g2000vbc.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1320787521 5573 69.95.181.76 (8 Nov 2011 21:25:21 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 8 Nov 2011 21:25:21 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Xref: news2.google.com comp.lang.ada:14356 Date: 2011-11-08T15:25:19-06:00 List-Id: "comp.lang.php" wrote in message news:66dbca36-0248-458a-aff4-1176d6ce098b@m10g2000vbc.googlegroups.com... >I have an instantiation of the package Ada.Containers.Ordered_Maps > (Integer, Float). Is there a neat way of iterating over the values > similar to the construction: > for x of a_Set loop ... end loop. Exactly that should work (but only in Ada 2012, and only in a reasonably complete implementation). Don't know if GNAT has all of the needed features (my understanding was that a few were still missing, but that's a few months old now). Randy.