iter icon indicating copy to clipboard operation
iter copied to clipboard

Feature: searchKey

Open Bilge opened this issue 2 years ago • 1 comments
trafficstars

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?

Bilge avatar Aug 22 '23 09:08 Bilge

Sounds reasonable to me!

nikic avatar Aug 26 '23 15:08 nikic