- Variadic vs infix
To concatenate two Python iterators, we use
The resulting iterator consists of each element from the first argument (1 and 2), followed by each element of the second argument (3 and 4).
The corresponding Haskell function
Prelude. is called
(++) may be replaced with the more general operator
(<>), because conatenation is the semigroup operation for the list type.