Ruby | Set disjoint? function
The disjoint? is an inbuilt method in Ruby that returns true if the set and the given set have no element in common.
Parameters: The function does not takes any parameter.
Return Value: It returns a new set built by duplicating the set, removing every element that appears in the given enumerable object.