From: marcandre-ruby-core@... Date: 2020-06-01T16:46:26+00:00 Subject: [ruby-core:98608] [Ruby master Feature#16928] Array#include_all? & Array#include_any? Issue #16928 has been updated by marcandre (Marc-Andre Lafortune). FYI, you can already do these with sets: ```ruby Set[1, 2] == Set[2, 1] # => true Set[1,2].intersect?(Set[2]) # => true ``` The second case has been requested a few times already: #15198, ... ---------------------------------------- Feature #16928: Array#include_all? & Array#include_any? https://bugs.ruby-lang.org/issues/16928#change-85929 * Author: AndyMaleh (Andy Maleh) * Status: Open * Priority: Normal ---------------------------------------- Hi, The Ruby Array class is currently missing #include_all? and #include_any? to check if current Array includes all elements of another Array or any. I implemented in this Ruby Gem: https://github.com/AndyObtiva/array_include_methods I would like to propose merging into Ruby since these methods are very handy and are more readable than coding by hand manually. Andy Maleh ---Files-------------------------------- array_include_methods.zip (65.8 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: