Std.Math.isPowerOfTwo
1 declaration
fn
isPowerOfTwo: Int -> BoolThis is a callable function.
What it does
Tests whether an integer is an exact positive power of two (1, 2, 4, 8, ...).
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
