Ruby 3.1 adds Array#intersect? | BigBinary Blog

PHOTO EMBED

Fri May 28 2021 14:33:09 GMT+0000 (Coordinated Universal Time)

Saved by @captm

1=> x.intersect?(y)

2=> true

3

4=> y.intersect?(z)

5=> false
content_copyCOPY

https://bigbinary.com/blog/ruby-3-1-adds-array-intersect