Logo

Programming-Idioms

History of Idiom 141 > diff from v11 to v12

Edit summary for version 12 by Bart:
New Pascal implementation by user [Bart]

Version 11

2017-10-28, 12:34:37

Version 12

2019-01-08, 16:48:15

Idiom #141 Iterate in sequence over two lists

Iterate in sequence over the elements of the list items1 then items2. For each iteration print the element.

Idiom #141 Iterate in sequence over two lists

Iterate in sequence over the elements of the list items1 then items2. For each iteration print the element.

Code
for i := 0 to list_items1.Count-1 do writeln(list_items1[i]);
for i := 0 to list_items2.Count-1 do writeln(list_items2[i]);