From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_20 autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:a355:: with SMTP id m82mr4807422qke.74.1607283466121; Sun, 06 Dec 2020 11:37:46 -0800 (PST) X-Received: by 2002:ac8:c8c:: with SMTP id n12mr20832681qti.32.1607283465848; Sun, 06 Dec 2020 11:37:45 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 6 Dec 2020 11:37:45 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:3c3:401:f550:6d60:8dcc:d80d:6f98; posting-account=JSxOkAoAAADa00TJoz2WZ_46XrZCdXeS NNTP-Posting-Host: 2601:3c3:401:f550:6d60:8dcc:d80d:6f98 References: <3daf539f-d0d9-431d-92ff-8210fd520793n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5b8e43c3-ed39-4a44-8aa6-bc00d43be624n@googlegroups.com> Subject: Re: Advent of Code Day 6 From: John Perry Injection-Date: Sun, 06 Dec 2020 19:37:46 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60753 List-Id: On Sunday, December 6, 2020 at 5:07:24 AM UTC-6, Jeffrey R. Carter wrote: > On 12/6/20 9:39 AM, John Perry wrote: > >...the only way I could find to count the number of elements in a Character_Set was by converting it to a Character_Sequence. Is there another way? > Probably one of the set pkgs in Ada.Containers or > PragmARC.Data_Structures.Sets.Discrete might be a better choice than Character_Set Thanks, Ada.Containers.Hashed_Sets works fine. I look forward to initialization of containers in the next edition of gnat. john perry