Skip to content

Problems with queues containing nil values #1

@Qqwy

Description

@Qqwy

This is a nice library, but if a Deque is made that might contain nil values, it is impossible to know if the result obtained from Deque.pop is nil because the Deque is empty or because the operation failed.

I think it would be a good idea to also have an ok/error-tuple returning version of Deque.pop, Deque.popleft, Deque.first and Deque.last in the API.

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