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

Add support for the HasFlag operator #1364

Merged
merged 2 commits into from
May 18, 2023
Merged

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented May 18, 2023

This PR introduces a new binary operator HasFlag which can be used to test whether specified bit fields are set on all elements of an observable sequence. The implementation has also been extended to allow testing the provided flag values directly against raw primitive types (e.g. numeric types), but the "flag" operand (the property value) must always be an enum.

Fixes #1307

@glopesdev glopesdev added the feature New planned feature label May 18, 2023
@glopesdev glopesdev added this to the 2.8 milestone May 18, 2023
@glopesdev glopesdev merged commit aacf0ec into bonsai-rx:main May 18, 2023
@glopesdev glopesdev deleted the issue-1307 branch May 18, 2023 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New planned feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding support for HasFlag operator
1 participant