some BitArray refactor
This commit is contained in:
@@ -199,7 +199,7 @@ export class BitArrayImpl implements BitArray {
|
||||
|
||||
return other instanceof BitArrayImpl ?
|
||||
arrayLike(this.#bits).zip(arrayLike(other.#bits)).all(([a, b]) => (a & b) === b) :
|
||||
sequence(this).zip(sequence(other)).where(([, b]) => b).all(([a, b]) => a && b);
|
||||
sequence(this).zip(sequence(other)).where(([, b]) => b).all(([a]) => a);
|
||||
}
|
||||
|
||||
public intersects(other: BitArray) {
|
||||
|
||||
Reference in New Issue
Block a user