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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d4c0eb138f4953e2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-01 18:08:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!falcon.america.net!eagle.america.net.POSTED!not-for-mail Message-ID: <3C326B1A.E1209806@otelco.net> From: Larry Hazel X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en,x-ns11F8K63r3NhQ,x-ns2r2e09OnmPe2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Non destructive summation of nodes (Linked List/FIFO Queue) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 01 Jan 2002 20:06:18 -0600 NNTP-Posting-Host: 66.0.32.230 X-Trace: eagle.america.net 1009937286 66.0.32.230 (Tue, 01 Jan 2002 21:08:06 EST) NNTP-Posting-Date: Tue, 01 Jan 2002 21:08:06 EST Organization: 24hoursupport.com Xref: archiver1.google.com comp.lang.ada:18429 Date: 2002-01-01T20:06:18-06:00 List-Id: Another thought is to add each removed element to another queue. So, you've still got the queue after displaying each element. It just has a different name. Liddle Feesh wrote: > > Michal suggested: > > while not (Queue.Is_Empty_Queue(Queue) ) loop > Queues.Remove (Element, Queue); -- Add the removed element to another queue Queues.Add (Element, Another_Queue); > Put(Element); > New_Line; > end loop; > > ------ > > However, the above basically removes each node whilst 'counting' back the > values stored in each. > Larry