Skip to content
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

New operators: isin #33

Open
jgabrielygalan opened this issue Apr 7, 2015 · 0 comments
Open

New operators: isin #33

jgabrielygalan opened this issue Apr 7, 2015 · 0 comments

Comments

@jgabrielygalan
Copy link

Hi,

I would like to know if you would be open to adding some other convenience operators. For example, I would find a simmetric operator to contains where the array in the RHS more natural in certain circumstances. For example, I have an object with a status and now I have to do this:

if {'bad_request', 'not_authorized'} contains context.error

while it would feel much more natural to do:

if context.error in {'bad_request', 'not_authorized'}

I know in is already taken for projections, so something like isin, or whatever. I can provide a pull request if it would be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant