Skip to content

Pop fails for lists with only one element #1

Open
@neilparikh

Description

@neilparikh

If you have a list that has only one element, and you call the pop method, an exception will be raised.

For example, the following will raise an exception

list = List.new(1)
list.pop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions