mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Enhanced RDoc for Array
This commit is contained in:
parent
d29de7b31b
commit
a50750c8a9
Notes:
git
2020-07-22 07:07:43 +09:00
1 changed files with 1 additions and 7 deletions
8
array.c
8
array.c
|
@ -5461,15 +5461,9 @@ rb_ary_concat(VALUE x, VALUE y)
|
|||
*
|
||||
* ---
|
||||
*
|
||||
* When argument +n+ is given, returns a new \Array
|
||||
* built by concatenating +n+ copies of +self+.
|
||||
*
|
||||
* If +n+ is positive, returns the concatenation of +n+ repetitions of +self+:
|
||||
* When argument +n+ is given, returns a new array built by concatenating the +int+ copies of +self+:
|
||||
* a = ['x', 'y']
|
||||
* a * 3 # => ["x", "y", "x", "y", "x", "y"]
|
||||
*
|
||||
* If +n+ is zero, returns an new empty \Array:
|
||||
* a = [0, 1]
|
||||
* a * 0 # => []
|
||||
*
|
||||
* ---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue