intersects method

bool intersects(
  1. KeyExpr other
)

Returns true if this key expression intersects with other.

Two key expressions intersect if there exists at least one key that belongs to both sets.

other may have any backing: the comparison is made on loaned handles. (loanedKeyExpr is what guards both operands — a dead one throws StateError there, before any native call.)

Implementation

bool intersects(KeyExpr other) => bindings.zd_keyexpr_intersects(
  loanedKeyExpr.cast(),
  other.loanedKeyExpr.cast(),
);