From: "lellisga (Li Ellis Galardo)" Date: 2012-06-02T03:00:58+09:00 Subject: [ruby-core:45369] [ruby-trunk - Feature #6515] array.c: added method that verifies if an Array is part of another Issue #6515 has been updated by lellisga (Li Ellis Galardo). File feature_6515_array_part_of_v3.patch added @nobu you are right. I'll change the method to (arry1 - arry2).empty?. About the method functionally I thought of it like the subset method from Set. That's why it doesn't care about the order. ---------------------------------------- Feature #6515: array.c: added method that verifies if an Array is part of another https://bugs.ruby-lang.org/issues/6515#change-26957 Author: lellisga (Li Ellis Galardo) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: 2.0.0 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 -- http://bugs.ruby-lang.org/