BoolAsResult function
Fully qualified name: Std.Convert.BoolAsResult
function BoolAsResult(input : Bool) : Result
Summary
Converts a Bool
type to a Result
type, where true
is mapped to
One
and false
is mapped to Zero
.
Input
input
Bool
to be converted.
Output
A Result
representing the input
.