DusanKasan / Knapsack

Collection pipeline library for PHP
http://dusankasan.github.io/Knapsack/
MIT License
536 stars 56 forks source link

Find key? #70

Open FoxxMD opened 4 years ago

FoxxMD commented 4 years ago

I hope I'm not missing something obvious..

I want to use find() but have it return key rather than value so that I can use it with replace(). I could do this with reduce() instead I guess but was hoping I could make it more granular. Is there way to do this?