Project

General

Profile

Actions

Feature #16928

open

Array#include_all? & Array#include_any?

Added by AndyMaleh (Andy Maleh) about 1 year ago. Updated about 1 year ago.

Status:
Open
Priority:
Normal
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

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

Also available in: Atom PDF