📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 22:11:47
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
Array
📍 /opt/alt/ruby30/share/ri/system/Array
🔄 Refresh
✏️
Editing: intersection-i.ri
Read Only
U:RDoc::AnyMethod[iI"intersection:ETI"Array#intersection;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GReturns a new \Array containing each element found both in +self+ ;TI"4and in all of the given Arrays +other_arrays+; ;TI"Dduplicates are omitted; items are compared using <tt>eql?</tt>:;To:RDoc::Markup::Verbatim; [I"A[0, 1, 2, 3].intersection([0, 1, 2], [0, 1, 3]) # => [0, 1] ;TI"G[0, 0, 1, 1, 2, 3].intersection([0, 1, 2], [0, 1, 3]) # => [0, 1] ;T:@format0o; ; [I"!Preserves order from +self+:;To;; [I"6[0, 1, 2].intersection([2, 1, 0]) # => [0, 1, 2] ;T;0o; ; [I"4Returns a copy of +self+ if no arguments given.;To:RDoc::Markup::BlankLine o; ; [I"Related: Array#&.;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"4array.intersection(*other_arrays) -> new_array ;T0[ I"(*args);T@!FI" Array;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel