From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!paganini.bofh.team!pasdenom.info!.POSTED.2a01:e0a:472:70f0:489f:9b4f:758a:47b3!not-for-mail From: DrPi <314@drpi.fr> Newsgroups: comp.lang.ada Subject: Re: Map iteration and modification Date: Thu, 28 Dec 2023 14:59:07 +0100 Organization: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 28 Dec 2023 13:59:08 -0000 (UTC) Injection-Info: rasp.pasdenom.info; posting-account="314@usenet"; posting-host="2a01:e0a:472:70f0:489f:9b4f:758a:47b3"; logging-data="10137"; mail-complaints-to="abuse@pasdenom.info" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:4EnUX489pNjLAkD/HAmyz5Bss+A= sha256:IF/q6+BznC2B0GzIn4El4jRs0Pqpm3f0zISvgAHMRqE= sha1:ce73oxzr3UUedjkRsKGaWMp/bpE= sha256:j7fPPcFoQ54nfdYQO+i6Wex/5BnBVFIIDW1p9HKPBtI= Content-Language: fr, en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65934 List-Id: Le 28/12/2023 à 14:53, DrPi a écrit : > Iterate the Map and temporarily store the key nodes to be deleted then > delete the nodes from the key list ? Not clear. Rephrasing it. Using 2 steps by iterating the Map and temporarily store the keys of nodes to be deleted then delete the Map nodes using the key list ?