Skip to content

Conversation

@yinbaoqiang
Copy link

Add remove method, if key exists, delete and return elements

t.Error("x is not nil:", x)
}
}
func TestREmove(t *testing.T) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@aapolkovsky
Copy link

aapolkovsky commented Apr 7, 2018

@yinbaoqiang Maybe the name "Extract" or "DeleteAndReturn" will be more meaningful?

Repository owner deleted a comment from pablodz Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants