-
Notifications
You must be signed in to change notification settings - Fork 11
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
Find Method #14
Comments
Adds missing method to README.
Hi, |
I'm looking for something like $chain->find(function ($item) use ($id) {
return $item['id'] === $id;
}); |
Add seach Method to README #14
Sounds like a good idea. Should we make Opinions? |
to have one method is probably less confusing. So i'd say extend |
hm changing the search method would either require a BC break or a very wonky signature: |
I don't think this is a BC break. The signature of |
ok sounds good, maybe we can utilize http://php.net/manual/en/function.array-filter.php for the implementation as it nearly covers the functionality we're looking for. |
i've written an implementation but I'm still not sure if So:
My current implementation behaves the same way:
I think what @TitanNano want's is to return 'bar' |
@gries yes that's what I'm looking for. |
Good point @gries . Then we should add a new method |
Please add a find method.
The text was updated successfully, but these errors were encountered: