Project

General

Profile

Actions

Feature #16928

open

Array#include_all? & Array#include_any?

Added by AndyMaleh (Andy Maleh) almost 4 years ago. Updated almost 4 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:98605]

Description

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) array_include_methods.zip AndyMaleh (Andy Maleh), 06/01/2020 03:39 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #15198: Array#intersect?Closedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0