From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.5 required=3.0 tests=BAYES_50,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:6214:452:: with SMTP id cc18mr6727035qvb.26.1613687935375; Thu, 18 Feb 2021 14:38:55 -0800 (PST) X-Received: by 2002:a25:b74d:: with SMTP id e13mr9624013ybm.405.1613687935114; Thu, 18 Feb 2021 14:38:55 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Feb 2021 14:38:54 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=82.154.189.75; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 82.154.189.75 References: <1b206764-967c-4b1b-af9c-61a0cd0750fcn@googlegroups.com> <84c3e8ee-e4e9-4402-8da6-e43a44eca66bn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4e824d60-5e60-4af8-97cd-30b76ced5943n@googlegroups.com> Subject: Re: can't understand how to move a node of a linked list to another place on the same From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Thu, 18 Feb 2021 22:38:55 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61380 List-Id: Dammit ! I meant to replace all A by X. X means the node of place X, that I want moved before the node of place Y. Yes it works in this case, Simon. But can't it too, when it comes switching two adjacent nodes ? what I wrote on paper with X and Y should work in all cases...