From e7fded9cca4cf6cd416866a95e8f7c5d1fe1a26a Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Mon, 30 Apr 2018 12:35:22 +0000 Subject: [PATCH] Update wikipage Removing object while iterating on a LIST. (Signed-off-by:tioui). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2003 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../Mini-HowTo/Iterate-on-a-LIST-and-removing-object.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterate-on-a-LIST-and-removing-object.wiki b/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterate-on-a-LIST-and-removing-object.wiki index aad2728a..7edbd7b5 100644 --- a/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterate-on-a-LIST-and-removing-object.wiki +++ b/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterate-on-a-LIST-and-removing-object.wiki @@ -1,6 +1,6 @@ [[Property:uuid|78393BBA-9B1E-4523-9881-3D83CEB6A952]] [[Property:weight|0]] -[[Property:title|Iterate on a LIST and removing object]] +[[Property:title|Removing object while iterating on a LIST]] If you already have the object that you want to remove from the LIST you can easily use prune and prune_all. But if you want to remove objects while iterating on that LIST, depending on criteria on the objects contained in the LIST, here what you can do. First of all, if you think about removing object while iterating, I do not recommend using an across loop. If you iterate on the list using a from until loop end, just remember to use the LIST.forth only when you do not use LIST.remove.