menu
scidart
numdart.dart
isPowerOf2 function
isPowerOf2
dark_mode
light_mode
isPowerOf2
function
bool
isPowerOf2
(
int
n
)
CHeck if
n
is power of 2.
Implementation
bool isPowerOf2(int n) => (n & (n - 1)) == 0;
scidart
numdart
isPowerOf2 function
numdart library