-
Notifications
You must be signed in to change notification settings - Fork 318
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
Add Itertools.contains #514
Conversation
Should we also support |
I believe I included an example of this in the doctests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Co-authored-by: Jack Wrenn <me@jswrenn.com>
Co-authored-by: Jack Wrenn <me@jswrenn.com>
Co-authored-by: Jack Wrenn <me@jswrenn.com>
Co-authored-by: Jack Wrenn <me@jswrenn.com>
That seems to be the last of the typos and such. I hate to think how far they would have gone in a dynamic language. 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
bors r+
Build succeeded: |
My pleasure. :) |
This is an extremely trivial shorthand for the code-pattern suggested by the docs for slice::contains in the case when one has a slice of owned data to be queried using borrowed data.