Issue #16928 has been reported by AndyMaleh (Andy Maleh).

----------------------------------------
Bug #16928: Array#include_all? & Array#include_any?
https://bugs.ruby-lang.org/issues/16928

* Author: AndyMaleh (Andy Maleh)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>