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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.89.146 with SMTP id p140mr11568122itb.35.1517011088310; Fri, 26 Jan 2018 15:58:08 -0800 (PST) X-Received: by 10.157.24.117 with SMTP id t50mr1108789ott.9.1517011088160; Fri, 26 Jan 2018 15:58:08 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g80no1113176itg.0!news-out.google.com!b73ni1782ita.0!nntp.google.com!w142no1114235ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 26 Jan 2018 15:58:07 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:645:c001:2a91:c855:6eb4:1f88:d0f4; posting-account=fxr6CwoAAABjARAbZ01okNaxDpxQT8RH NNTP-Posting-Host: 2601:645:c001:2a91:c855:6eb4:1f88:d0f4 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Ceate a set (type?) of list of integers that varies at run time From: Mace Ayres Injection-Date: Fri, 26 Jan 2018 23:58:08 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 142587191 X-Received-Bytes: 2419 Xref: reader02.eternal-september.org comp.lang.ada:50171 Date: 2018-01-26T15:58:07-08:00 List-Id: * Using the word set in mathetical sense. I have an array 2D_array is Integer 1..9, 1..9 of my_record. =E2=80=94 my_= record has a boolean field locked. Before looping/iteration across 2D_array (r,c), I want to restrict the colu= mns (c) that I process, to bet something like for r in 1..9 loop for c (column) in (columns_to_check) I have to create the enumeration type? list of columns to check and put in = my columns_to_check container and then only iterate these, maybe 1,2,3,7,8,9 =E2=80=94 do not check 4,5 o= r 6 Need a function like get_columns_to_check that iterates all 1..9 columns=20 if (r,c).locked is true=20 then do not have in final columns_to_check something (range, or enumeration= type) either add to empty columns_to_check or delete from default columns_to_chec= k that has 1..9; what kind, type of an object can I use to hold the valid columns to check t= hing-e columns_to_check and that I can also iterate across. Can I have a range that is not a continuous series of integers, NOT 1..9 bu= t 1,2,5,6,7,9=20 and then some different subset of 1..9 the next time. Recalculating a new s= et Columns_to_check for each outer loop of rows? ...