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

Boolean negation function #110

Open
uncomputable opened this issue Dec 27, 2024 · 0 comments
Open

Boolean negation function #110

uncomputable opened this issue Dec 27, 2024 · 0 comments

Comments

@uncomputable
Copy link
Collaborator

Simfony should have a function to negate values of type bool. The current way is via casting, which is efficient but verbose to write.

let bit: bool = false;
let int: u1 = <u1>::into(jet::complement_1(<bool>::into(bit)));
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