Skip to content

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

Open
yinbaoqiang wants to merge 1 commit intopatrickmn:masterfrom
antlinker:master
Open

Add remove method, if key exists, delete and return elements#77
yinbaoqiang wants to merge 1 commit intopatrickmn:masterfrom
antlinker:master

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