Logo

Programming-Idioms

History of Idiom 141 > diff from v12 to v13

Edit summary for version 13 by Bart:
[Pascal] typed wrong identifier name

Version 12

2019-01-08, 16:48:15

Version 13

2019-01-08, 16:54:01

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]);
Code
for i := 0 to items1.Count-1 do writeln(items1[i]);
for i := 0 to items2.Count-1 do writeln(items2[i]);