Skip to content

Feature: searchKey #94

Description

@Bilge

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions