Logo

Programming-Idioms

History of Idiom 141 > diff from v8 to v9

Edit summary for version 9 by Dodopod:
[Scheme] Lists are supposed to be items1 and items2

Version 8

2017-06-14, 15:22:04

Version 9

2017-06-14, 15:23:03

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
(map (lambda (x)
         (display x)
         (newline))
         (append '(1 2 3 4) '(5 6 7 8)))
Code
(map (lambda (x)
       (display x)
       (newline))
     (append items1 items2))