[DOC] Tweaks for Array#concat
This commit is contained in:
parent
bd19d3d163
commit
fd0263d7ef
Notes:
git
2024-08-24 15:51:46 +00:00
8
array.c
8
array.c
@ -4973,12 +4973,14 @@ ary_append(VALUE x, VALUE y)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* array.concat(*other_arrays) -> self
|
||||
* concat(*other_arrays) -> self
|
||||
*
|
||||
* Adds to +array+ all elements from each +Array+ in +other_arrays+; returns +self+:
|
||||
* Adds to +self+ all elements from each array in +other_arrays+; returns +self+:
|
||||
*
|
||||
* a = [0, 1]
|
||||
* a.concat([2, 3], [4, 5]) # => [0, 1, 2, 3, 4, 5]
|
||||
* a.concat(['two', 'three'], [:four, :five], a)
|
||||
* # => [0, 1, "two", "three", :four, :five, 0, 1]
|
||||
*
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user