comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Advent of Code Day 6
Date: Sun, 6 Dec 2020 12:07:20 +0100	[thread overview]
Message-ID: <rqie1a$8b2$1@dont-email.me> (raw)
In-Reply-To: <3daf539f-d0d9-431d-92ff-8210fd520793n@googlegroups.com>

On 12/6/20 9:39 AM, John Perry wrote:
> 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?

Probably one of the set pkgs in Ada.Containers or 
PragmARC.Data_Structures.Sets.Discrete might be a better choice than Character_Set

-- 
Jeff Carter
“[T]here are lots of people out there writing software
that should really be out cleaning toilets instead.”
Brian Catlin
173

  reply	other threads:[~2020-12-06 11:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-06  8:39 Advent of Code Day 6 John Perry
2020-12-06 11:07 ` Jeffrey R. Carter [this message]
2020-12-06 19:37   ` John Perry
2020-12-07 10:55     ` Maxim Reznik
2020-12-07 13:32       ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox