Skip to content

Add rewind/prepend #3

@foxbunny

Description

@foxbunny

Add a function that prepends a value to an iterator. This should be a simple wrapper around concat() such that:

prepend(iterable, x) == concat([x], iterable)

With this change, it should be possible to rewind the last value while performing takeWhile() (see #2)

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