The zip
function in Python and Haskell
The latest Python lesson is all about zipping, a notion also sometimes referred to as aligning. We discuss three Python functions: zip
, zip_longest
, and enumerate
. The Haskell translations of the examples involve the these
package, which we’ve discussed previously in Functortown.