Skip to content

Feature Request: zip_pad_with_default #537

@abrassel

Description

@abrassel

When trying to zip over two iterators of unequal lengths, zip_longest is very useful for the case in which one doesn't exist.
When trying to do zip longest, but the underlying items implement Default, it could be useful to have a version of zip_longest that pads the shorter iterator with Item::default().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions