Issue #6515 has been updated by nobu (Nobuyoshi Nakada).


I'm not in favor with this proposal, because of its name mainly.
'Array X is part of array Y' sounds like 'all elements in X are
arranged in Y successively in the same order', to me.

If the order is not your concern, why it isn't a method of Set?

Also, Array#& isn't necessary here.
  (ary1 - ary2).empty?
would work enough.

----------------------------------------
Feature #6515: array.c: added method that verifies if an Array is part of another
https://bugs.ruby-lang.org/issues/6515#change-26919

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/