Skip to content

v2.6.0

Compare
Choose a tag to compare
@elliotchance elliotchance released this 08 Jun 13:24
· 9 commits to master since this release
90bf328
Add Zip and ZipLongest function (#193)

Zip will return a new slice containing pairs with elements from input slices.
If input slices have different length, the output slice will be truncated to
the length of the smallest input slice.

ZipLongest will return a new slice containing pairs with elements from input slices.
If input slices have diffrent length, missing elements will be padded with default values.

These are the same as zip() and itertools.zip_longest() in Python.