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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:6214:1634:: with SMTP id e20mr17358789qvw.205.1579015626365; Tue, 14 Jan 2020 07:27:06 -0800 (PST) X-Received: by 2002:aca:cdd6:: with SMTP id d205mr16521352oig.90.1579015625997; Tue, 14 Jan 2020 07:27:05 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.unit0.net!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!g89no8175143qtd.0!news-out.google.com!w29ni1140qtc.0!nntp.google.com!g89no8175141qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 14 Jan 2020 07:27:05 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:6d40:37bc:9101:85d1:5581:3bad:4d39; posting-account=3Fg1FgoAAACfsmWScNfMD1tGFhR4DU0o NNTP-Posting-Host: 2a02:6d40:37bc:9101:85d1:5581:3bad:4d39 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3c6f1486-293d-4eb5-a379-279b108248d8@googlegroups.com> Subject: Tally From: Gilbert Gosseyn Injection-Date: Tue, 14 Jan 2020 15:27:06 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57838 Date: 2020-01-14T07:27:05-08:00 List-Id: Before I make long tests with access Types, declarations or containers, I would like to get an advice on how to program in a simple and fast way the following, or get a hint to an existing program. Example_Input: (2, 3, 8, 2, 2, 2, 7, 2, 3, 4, 8) ; -- variable Length Output by function or procedure : ((2, 5), (3, 2), (8, 2), (7, 1), (4, 1)); -- unknown Length -- tallies the elements in Input, listing all distinct elements together with their multiplicities Thank you