From f22534c546855d82e2e8acdaaa9981d5846dc036 Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Mon, 30 Apr 2018 13:18:38 +0000 Subject: [PATCH] Update wikipage Iterating on a LIST. (Signed-off-by:tioui). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2012 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../eiffel/Tutorials/Mini-HowTo/Iterating-on-a-LIST.wiki | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterating-on-a-LIST.wiki b/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterating-on-a-LIST.wiki index aa8e6bc2..8b19edd3 100644 --- a/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterating-on-a-LIST.wiki +++ b/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Iterating-on-a-LIST.wiki @@ -1,12 +1,13 @@ [[Property:uuid|96077603-DD2D-4D8C-A486-AF4BD066613A]] [[Property:weight|0]] [[Property:title|Iterating on a LIST]] -There is two Eiffel mecanisms to iterate on every element of a LIST. +There are two Eiffel mechanisms to iterate on every element of a LIST. The first it the across loop. The across can be used on every ITERABLE object (including LIST objects). print_elements(a_list:LIST[INTEGER]) + -- Print every elements on `a_list' do across a_list as la_list loop print(la_list.item.out + "%N") @@ -20,6 +21,7 @@ The other mecanism use the from until loop syntax. This syntax offe print_elements(a_list:LIST[INTEGER]) + -- Print every elements on `a_list' do from a_list.start