famafrench.utils.any_in

famafrench.utils.any_in(a_set, b_set)[source]

Boolean variable that is True if elements in a given set a_set intersect with elements in another set b_set. Otherwise, the boolean is False.

Parameters
  • a_set (list) – First set of elements.

  • b_set (list) – Second set of elements.

Returns

not set(a_set).isdisjoint(b_set) – Boolean that is True if there is a non-empty intersection between both sets. Otherwise, the boolean is False.

Return type

bool