From: Simon Wright <simon@pushface.org>
Subject: Re: Tally
Date: Wed, 15 Jan 2020 09:03:12 +0000
Date: 2020-01-15T09:03:12+00:00 [thread overview]
Message-ID: <lyo8v5ytv3.fsf@pushface.org> (raw)
In-Reply-To: b806369f-e712-43e5-b6de-c80fb97dde96@googlegroups.com
Brad Moore <bmoore.ada@gmail.com> writes:
> for Number of Input loop
> Counts (Number) := Counts (Number) + 1;
> end loop;
for Number of Input loop
if Counts.Contains (Number) then
Counts (Number) := Counts (Number) + 1;
else
Counts.Insert (Number, 1);
end if;
end loop;
and then of course
for C in Counts.Iterate loop
Put_Line (Count_Maps.Key (C)'Image
& " -> "
& Count_Maps.Element (C)'Image);
end loop;
next prev parent reply other threads:[~2020-01-15 9:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-14 15:27 Tally Gilbert Gosseyn
2020-01-14 16:22 ` Tally Niklas Holsti
2020-01-14 17:28 ` Tally Simon Wright
2020-01-15 11:52 ` Tally Simon Wright
2020-01-14 21:08 ` Tally Jeffrey R. Carter
2020-01-15 3:40 ` Tally Brad Moore
2020-01-15 9:03 ` Simon Wright [this message]
2020-01-15 23:09 ` Tally Jere
2020-01-16 11:34 ` Tally Simon Wright
2020-01-16 15:35 ` Tally Brad Moore
2020-01-16 20:20 ` Tally Randy Brukardt
2020-01-16 22:03 ` Tally Jeffrey R. Carter
2020-01-16 22:00 ` Tally Jeffrey R. Carter
2020-01-16 22:25 ` Tally Simon Wright
2020-01-17 2:51 ` Tally Brad Moore
2020-01-17 3:08 ` Tally Brad Moore
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox