rubyhackchallenge icon indicating copy to clipboard operation
rubyhackchallenge copied to clipboard

Array#overlap?(array)

Open fcheung opened this issue 6 years ago • 1 comments

Semantically equivalent to (array1 & array2).any? but doesn't create an intermediate array & can return as soon as one element in common is found

fcheung avatar Jul 02 '19 11:07 fcheung

https://github.com/ruby/ruby/pull/2260

fcheung avatar Jul 02 '19 11:07 fcheung