BitArray.opBinary

Generates a new array which is the result of bitwise operation op between this array and the supplied array.

Supported are bitwise binary operation "&", "|", "^".

  1. BitArray opBinary(BitArray rhs)
    struct BitArray
    opBinary
    (
    string op
    )
    if (
    op == "&" ||
    op == "|"
    ||
    op == "^"
    )
  2. BitArray opBinary(BitArray rhs)
  3. BitArray opBinary(bool rhs)
  4. BitArray opBinary(BitArray rhs)

Parameters

op

operation to perform

rhs BitArray

The array with which to perform the bitwise operation.

In: rhs.length must equal the length of this array.

Return Value

Type: BitArray

A new array which is the result of a bitwise operation between this array and the supplied array.

Meta