Comparing elements of two arrays for similarity
When checking two arrays for similar elements, use:
(a & b).any? or (a & b).empty?
* 'or' in the snipplet above, is not an operator, but a geniune 'or'From The Momoro Hoax
When checking two arrays for similar elements, use:
(a & b).any? or (a & b).empty?
* 'or' in the snipplet above, is not an operator, but a geniune 'or'From The Momoro Hoax