AndBitX Function

Bitwise AND operation of two lists of integer numbers


Funktion

The function AndBitX takes a bitwise AND operation of two natural numbers or lists. AndBitX is different from AndBit 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. The result it a table.

AndBitX([8,9,10],[7,8,9])= 0 8 8
1 8 9
2 8 8


The lists may have different lengths.