Logo

Programming-Idioms

History of Idiom 141 > diff from v15 to v16

Edit summary for version 16 by csaba:
New JS implementation by user [csaba]

Version 15

2019-09-26, 16:33:33

Version 16

2019-09-26, 17:56:59

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 (let item of items1) console.log(item)
for (let item of items2) console.log(item)