method

intersect?

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Set
intersect?(set) public

Returns true if the set and the given set have at least one element in common.

e.g.:

require 'set'
Set[1, 2, 3].intersect? Set[4, 5] # => false
Set[1, 2, 3].intersect? Set[3, 4] # => true
Show source
Register or log in to add new notes.