Branchless way to convert bool to int?
Right now I do something like
Is there a way to do this in a branchless way?
Is there a way to do this in a branchless way?
b.to_int() doesn't exist# assuming b is a bool
let x = 1 if b else 0b.to_int()