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,fccea7ca608399cd X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Vector of Vectors. Date: Sat, 17 Jan 2009 11:45:25 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <496e8418$0$25733$4d3efbfe@news.sover.net> <6t8gc1F9ej88U1@mid.individual.net> <1k65xsljjpsa9$.1e4pcvnzbjpag.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1232210725 32713 192.74.137.71 (17 Jan 2009 16:45:25 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 17 Jan 2009 16:45:25 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xXudBzCHszV/QmXSW5RDq3s13sw= Xref: g2news2.google.com comp.lang.ada:4384 Date: 2009-01-17T11:45:25-05:00 List-Id: "Dmitry A. Kazakov" writes: > And the next step is > > for Element in Vector loop > -- place "new procedure" here! > end loop; Sather has an elegant iterator feature, which is along these lines. > There is nothing better for iteration than loops. Maybe things like "map" found in functional languages? >...Downward closures are > meant for different stuff. I'd say your above "for..." syntax should be thought of as syntactic sugar defined in terms of downward closures. Or perhaps in terms of some coroutine-like concept. - Bob