Skip to content

Missing first, last #17

@conartist6

Description

@conartist6

first and last are currently defined for Lists only.

Last is going to be annoying/non-performant on Map and Set.

We will probably want to cover the common case by simply caching the most recently added item. last will be slow then only when that item has been removed. It also might just not be worth it to implement. The code to keep track of when to invalidate the saved last item would be rather nasty.

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