From: c4am95@... Date: 2021-04-07T19:17:22+00:00 Subject: [ruby-core:103278] [Ruby master Feature#15198] Array#intersect? Issue #15198 has been updated by c4am95 (Travis Hunter). Matz/Marc-Andre: anything I can do to help here as far as documentation or providing more use cases? I/my colleagues would love to see this make it into Ruby. ---------------------------------------- Feature #15198: Array#intersect? https://bugs.ruby-lang.org/issues/15198#change-91364 * Author: c4am95 (Travis Hunter) * Status: Open * Priority: Normal ---------------------------------------- I frequently find myself needing to determine if two arrays intersect but not actually caring about the intersection, so I write code like: ~~~ ruby (a1 & a2).any? ~~~ It would be nice to have an **intersect?** convenience method on **Array** to perform this query. [ruby#1972: Add Array#intersect?](https://github.com/ruby/ruby/pull/1972) -- https://bugs.ruby-lang.org/ Unsubscribe: