operator & method

BitList operator &(
  1. BitList other
)

Returns the intersection of the receiver and other.

The new BitList has all the bits set that are set in the receiver and in other. The receiver and other need to have the same length, otherwise an exception is thrown.

Implementation

BitList operator &(BitList other) => BitList.of(this)..and(other);