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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,53ad9e0f13a55f60,start X-Google-Attributes: gid103376,public From: Gregory Mewborn Subject: Array Iterator Date: 1998/10/11 Message-ID: <3620C16B.3910@erols.com>#1/1 X-Deja-AN: 399937185 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rcn.com X-Trace: winter.news.erols.com 908116426 19598 207.172.113.126 (11 Oct 1998 14:33:46 GMT) Mime-Version: 1.0 Reply-To: mewborn@erols.com Newsgroups: comp.lang.ada Date: 1998-10-11T00:00:00+00:00 List-Id: How do i create a set iterator for a set using a boolean array. I begin with: package integer_Set is type Integer_Range is integer (1..100); type set is limited private; type set_Iteration is limited private; procedure start_set_Iter (S: Set); function more (S_Iter: Set_Iteration); Procedure next_element (S_Iter: Set_Iteration); private type Set array (Integer_RANGE) of Boolean; -- how do i write a Set_Iteration to use the the above functions and procedures and to work with the Set array?