Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop fails for lists with only one element #1

Open
neilparikh opened this issue Jun 18, 2013 · 0 comments
Open

Pop fails for lists with only one element #1

neilparikh opened this issue Jun 18, 2013 · 0 comments
Labels

Comments

@neilparikh
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant