Skip to content

halve silently fails on zip collections #68

@perrutquist

Description

@perrutquist

The current implementation of halve(zip(xs...)) essentially amounts to zip(map(halve, xs)...). This causes a problem when halve splits collections differently. Each half is then a zip of different-length collections, and since zip stops iterating at the end of the shortest collection, some elements are silently left out.

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