Project

General

Profile

Actions

Feature #6515

open

array.c: added method that verifies if an Array is part of another

Added by lellisga (Li Ellis Galardo) over 9 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
Normal
Target version:
-
[ruby-core:45316]

Description

This method is like the include? method but instead of receiving a value and check if the array has it, it receives an array an check if it's part of another one.

https://github.com/ruby/ruby/pull/127


Files

array.c (127 KB) array.c lellisga (Li Ellis Galardo), 05/30/2012 12:14 PM
test_array.rb (60.2 KB) test_array.rb lellisga (Li Ellis Galardo), 05/30/2012 12:14 PM
feature_6515_array_part_of.patch (2.34 KB) feature_6515_array_part_of.patch zzak (Zachary Scott), 05/30/2012 09:00 PM
feature_6515_array_part_of_v2.patch (983 Bytes) feature_6515_array_part_of_v2.patch lellisga (Li Ellis Galardo), 05/30/2012 11:32 PM
feature_6515_array_part_of_v3.patch (2.11 KB) feature_6515_array_part_of_v3.patch lellisga (Li Ellis Galardo), 06/02/2012 03:00 AM
Actions

Also available in: Atom PDF