Referring to the API docs, you may use find
and contains
method.
alpha find (beta.contains) isDefined
OR
Even better, use exists
method.
alpha exists (beta.contains)
OR
Even shorter and better, use apply
method of BitSet which is equivalent to its contains
method.
alpha exists beta