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.8 required=3.0 tests=BAYES_50 autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:5750:: with SMTP id 16mr17962040qtx.305.1607243974930; Sun, 06 Dec 2020 00:39:34 -0800 (PST) X-Received: by 2002:a37:278e:: with SMTP id n136mr18094401qkn.192.1607243974703; Sun, 06 Dec 2020 00:39:34 -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 00:39:34 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:3c3:401:f550:c91e:eb05:8446:cc91; posting-account=JSxOkAoAAADa00TJoz2WZ_46XrZCdXeS NNTP-Posting-Host: 2601:3c3:401:f550:c91e:eb05:8446:cc91 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3daf539f-d0d9-431d-92ff-8210fd520793n@googlegroups.com> Subject: Advent of Code Day 6 From: John Perry Injection-Date: Sun, 06 Dec 2020 08:39:34 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60744 List-Id: Today was quite easy, so I used the opportunity to learn about Ada.Strings.Maps, and that made for a much simpler solution to look at. I do wonder about the efficiency, though. For instance, 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?