Zipping

Contents
  • zip
    • Zipping more than two lists
  • zip_longest
    • The fillvalue parameter
  • enumerate
    • Enumerating from zero
    • The start parameter

Here we’ll look at these closely-related Python functions:

  • zip
  • itertools.zip_longest
  • enumerate

and these Haskell functions:

  • zip
  • zip3, zip4, etc.
  • padZip

Sign up for access to the full page, plus the complete archive and all the latest content.