Skip to content

request: add remainder method to core::iter::Split #91733

Closed
@Lokathor

Description

@Lokathor

It would be very helpful if the Split iterator let you get back the currently remaining slice. There's splitn when you know ahead of time the number of splits you need, but sometimes you don't, and you need to dynamically determine when to stop splitting.

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