Logo

Programming-Idioms

History of Idiom 141 > diff from v9 to v10

Edit summary for version 10 by Algorhythmus:
New Haskell implementation by user [Algorhythmus]

Version 9

2017-06-14, 15:23:03

Version 10

2017-09-12, 15:20:22

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
mapM_ print $ items1 ++ items2
Comments bubble
$ is the function application operator of Haskell to eliminate annoying parentheses.

E.g., f $ g x y z == f (g x y z)