8 lines
No EOL
235 B
Text
8 lines
No EOL
235 B
Text
from "EMBED" import bool_to_field;
|
|
|
|
def main(bool x) -> field {
|
|
// `x` is constrained by the compiler automatically so we can safely
|
|
// treat it as `field` with no extra cost
|
|
field out = bool_to_field(x);
|
|
return out;
|
|
} |