zipWith combines corresponding elements from two lists by applying a supplied function instead of creating tuples. It stops when either list has no more elements, making it useful when two sequences must become one. section 4.3.3
Formatting numbered lines
A line-numbering tool computes padding values separately, then uses zipWith to combine each padding value with its source line and produce a formatted String. The combining function determines the output shape. section 4.3.3
The standard type and typical uses are:
- A useful exercise is to implement zip recursively, extend it into zipWith, and then consider implementing zip with zipWith. section 4.3.3
