AndBit Function
Bitwise AND operation of two integer numbers
The function AndBit performs a bitwise AND operation of two natural numbers or lists. AndBit is different from AndBitX in the handling of lists.
Syntax
AndBit (a, b)
AndBit (a, list)
AndBit (list, list)
Example
AndBit(12,7)= 4
If one argument is a list and the other is a natural number, each element in the list is AND operated with the number.
AndBit([9,10,11,12,13,14,15],7)= 1 2 3 4 5 6 7
If both arguments are lists, each element of the first list is AND operated to the corresponding element of the second list.
AndBit([10,11,12],[15,16,17])= 10 0 1
If two lists have different lengths, the overhang of the longer list is ignored.