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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.8dY8omnix++EB5/QBRk4Sw.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Tally Date: Wed, 15 Jan 2020 09:03:12 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <3c6f1486-293d-4eb5-a379-279b108248d8@googlegroups.com> NNTP-Posting-Host: 8dY8omnix++EB5/QBRk4Sw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:JT9sLZqMSTCNonWMBDPjbvXH6Sc= Xref: reader01.eternal-september.org comp.lang.ada:57844 Date: 2020-01-15T09:03:12+00:00 List-Id: Brad Moore 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;