From: shevegen@... Date: 2018-10-06T17:30:41+00:00 Subject: [ruby-core:89297] [Ruby trunk Feature#15198] Array#intersect? Issue #15198 has been updated by shevegen (Robert A. Heiler). Demonstrated use cases helps the core team & matz assess on the usefulness of a proposed change, which can help in accepting issue requests ultimately in the long run (if the use case is considered sufficiently useful). :) ---------------------------------------- Feature #15198: Array#intersect? https://bugs.ruby-lang.org/issues/15198#change-74331 * Author: c4am95 (Travis Hunter) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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: