Skip to content

Add new trie native: ContainsKey()#1390

Merged
Headline merged 3 commits intoalliedmodders:masterfrom
einyux:feature-trie
Dec 1, 2020
Merged

Add new trie native: ContainsKey()#1390
Headline merged 3 commits intoalliedmodders:masterfrom
einyux:feature-trie

Conversation

@einyux
Copy link
Contributor

@einyux einyux commented Nov 29, 2020

Nothing fancy here, just a new native to check if a key exists in a trie.
It helps to avoid to create a dummy variable when using GetTrieXXX() to check a key existence.

Native name can be changed if it's not to your liking :-D.

Copy link
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

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

Just a few nits, otherwise I'm okay with taking this.

Thanks for submitting this patch!

@Headline Headline added the Feature Request user requested feature label Nov 29, 2020
@einyux einyux changed the title Add new trie native: ExistInTrie() Add new trie native: ContainsKey() Nov 29, 2020
@Headline Headline requested a review from asherkin November 30, 2020 02:24
Copy link
Member

@asherkin asherkin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks - could bikeshed the name forever but I think ContainsKey is nice and clear.

@Headline Headline merged commit a191a90 into alliedmodders:master Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Request user requested feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants