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

✨ [FEATURE] - Add boolean tools #9

Open
MatthewMckee4 opened this issue Sep 1, 2024 · 0 comments · May be fixed by #14
Open

✨ [FEATURE] - Add boolean tools #9

MatthewMckee4 opened this issue Sep 1, 2024 · 0 comments · May be fixed by #14
Assignees
Labels
enhancement New feature or request

Comments

@MatthewMckee4
Copy link
Owner

Description

Should add a general boolean function at the module level.

Also look into adding dunder methods to all elements.

Union (OR)

element = element or element

    ...
    def __or__(self, other: Element)

Intersection (AND)

element = element and element

    ...
    def __and__(self, other: Element)

Difference (NOT)

element = element - element

    ...
    def __sub__(self, other: Element)

XOR (Exclusive OR)

element = element ^ element

    ...
    def __xor__(self, other: Element)

Additional information

No response

Type

Enhancement

@MatthewMckee4 MatthewMckee4 added the enhancement New feature or request label Sep 1, 2024
@MatthewMckee4 MatthewMckee4 self-assigned this Sep 1, 2024
@MatthewMckee4 MatthewMckee4 linked a pull request Sep 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant