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

Feature: searchKey #94

Open
Bilge opened this issue Aug 22, 2023 · 1 comment
Open

Feature: searchKey #94

Bilge opened this issue Aug 22, 2023 · 1 comment

Comments

@Bilge
Copy link

Bilge commented Aug 22, 2023

search() only finds the item you're searching for in the values of the iterable. e.g. search('foo', it) can only find 'foo', or nothing. If we want to know the key of the entry foo, there is currently no way to do this. searchKey('foo', it) would return the key pointing to the found 'foo'.

@nikic Would you accept this feature?

@nikic
Copy link
Owner

nikic commented Aug 26, 2023

Sounds reasonable to me!

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

No branches or pull requests

2 participants