From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, URI_TRY_3LD autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:2269:: with SMTP id gs9mr2721013qvb.40.1641526764099; Thu, 06 Jan 2022 19:39:24 -0800 (PST) X-Received: by 2002:a25:aa8c:: with SMTP id t12mr63802211ybi.615.1641526763870; Thu, 06 Jan 2022 19:39:23 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Jan 2022 19:39:23 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4596:5040:f9d5:7d39:8abd:a5ab; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4596:5040:f9d5:7d39:8abd:a5ab References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ok - WHAT are those "Maps.Identity" things ??? From: Gautier write-only address Injection-Date: Fri, 07 Jan 2022 03:39:24 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63351 List-Id: > > https://learn.adacore.com/courses/intro-to-ada/chapters/standard_library_strings.html > Gnat wants FOUR params ... and it's the last "map" related > one that's most mysterious. I'd also seen examples using > only TWO params ... but the compiler balks. > > In any case : > Idx := Index > (Source => S, > Pattern => P, > From => Idx + 1); > > won't compile no matter what you put in "from". Uh? Do you see the big "Run" button on the Web site mentioned above? Click on it!