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=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 10 Jan 2022 23:20:31 -0600 Subject: Re: Ok - WHAT are those "Maps.Identity" things ??? Newsgroups: comp.lang.ada References: <9e90006a-59f4-40fb-8b0f-ef5f957d3d86n@googlegroups.com> From: "1.AAC0832" Date: Tue, 11 Jan 2022 00:20:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <9e90006a-59f4-40fb-8b0f-ef5f957d3d86n@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 98.77.165.67 X-Trace: sv3-6nJRkLivVLvUvss6voD5Fm98S7D63jz83zEYIoqF9fx9qSqyCcTjyF0EZEnUj/D37iLMGmTIVBVSZAc!Drp4/NxUDHhJB84CIw5AbcwG/M2NJMm3/gVVdWtdM1scdCb1oJAGeGLiGbGb13NN75mssFMioyB6!BIYLOEfrQEq3z9Qbn9U= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2097 Xref: reader02.eternal-september.org comp.lang.ada:63368 List-Id: On 1/10/22 5:19 AM, Marius Amado-Alves wrote: >> Hate typing long things ... made one-liners S2U() and >> U2S() if you can guess what those are :-) > > This is totally line with the strict typing of Ada (no implicit conversion). > Most of us abbreviate even more as "+". > > Sorry, but I fail to see any reason the standard Ada.Strings Index functions would not work for your usecases. If possible please provide a succint explanation. It is suggested that the "needle" is a String string instead of an unbounded. I'll check that out and report once I finish my other project. Oh well, meanwhile, I just wrote one that DOES work with unboundeds.