D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Array
/
Filename :
difference-i.ri
back
Copy
U:RDoc::AnyMethod[iI"difference:ETI"Array#difference;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DReturns a new array containing only those elements from +self+ ;TI"<that are not found in any of the given +other_arrays+; ;TI"Mitems are compared using <tt>eql?</tt>; order from +self+ is preserved:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"@[0, 1, 1, 2, 1, 1, 3, 1, 1].difference([1]) # => [0, 2, 3] ;TI":[0, 1, 2, 3].difference([3, 0], [1, 3]) # => [2] ;TI"@[0, 1, 2].difference([4]) # => [0, 1, 2] ;TI"@[0, 1, 2].difference # => [0, 1, 2] ;T:@format0o; ; [I"8Returns a copy of +self+ if no arguments are given.;T@o; ; [I"Related: Array#-; ;TI"Lsee also {Methods for Combining}[rdoc-ref:Array@Methods+for+Combining].;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"1difference(*other_arrays = []) -> new_array ;T0[ I"(*args);T@FI" Array;TcRDoc::NormalClass00