Logo

Programming-Idioms

History of Idiom 141 > diff from v6 to v7

Edit summary for version 7 by Reiner Martin:
New Rust implementation by user [Reiner Martin]

Version 6

2016-08-26, 14:31:25

Version 7

2016-12-21, 16:38:45

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 in item1.chain(item2) {
    print!("{} ", i);
}