Julia Programming Language
Parse an array of bits (`BitArray`) to an integer
New to Julia
question
ellocco
May 11, 2023, 11:52am
28
Another option is:
bool2int(_boolarr) = evalpoly(2, reverse(_boolarr))
see: vector-bool-to-int
1 Like
show post in topic