Skip to content

Update zip to accept lists of different lengths? #30

Open
@usefulmove

Description

@usefulmove

The current implementation of zip does not behave the way it does in Haskell or Python. Haskell and Python accept list of different lengths. This has caught me off guard, and I've had to roll my own. I'm opening this issue to propose an update to zip to accept arguments that are of different lengths. I'd be happy to open a pull request if this behavior is desired.

An example of the proposed behavior:

(zip '(3 1 2) '(0 5)) ; => ((3 0) (1 5))

Let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions