$code |= 1 << $_That's what vec is for. It also works for indexes higher than the computer's native integers.vec( $code, 1, $_ ) = 1;
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^2: Making two 8-bit numbers from indices of set bits
by diotalevi
in thread Making two 8-bit numbers from indices of set bits
by carcassonne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |