[DOC] Tweak to Array#&
This commit is contained in:
parent
8aeca5ce40
commit
66181fdda5
Notes:
git
2024-08-06 19:38:09 +00:00
2
array.c
2
array.c
@ -5506,7 +5506,7 @@ rb_ary_difference_multi(int argc, VALUE *argv, VALUE ary)
|
|||||||
* call-seq:
|
* call-seq:
|
||||||
* self & other_array -> new_array
|
* self & other_array -> new_array
|
||||||
*
|
*
|
||||||
* Returns a new +Array+ object containing the _intersection_ of +self+ and +other_array+;
|
* Returns a new array containing the _intersection_ of +self+ and +other_array+;
|
||||||
* that is, containing those elements found in both +self+ and +other_array+:
|
* that is, containing those elements found in both +self+ and +other_array+:
|
||||||
*
|
*
|
||||||
* [0, 1, 2, 3] & [1, 2] # => [1, 2]
|
* [0, 1, 2, 3] & [1, 2] # => [1, 2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user