[DOC] rb_ary_s_create (#11256)
This commit is contained in:
parent
d2184e8d46
commit
477f672592
Notes:
git
2024-07-29 13:11:52 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>
7
array.c
7
array.c
@ -1159,11 +1159,12 @@ rb_ary_initialize(int argc, VALUE *argv, VALUE ary)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns a new array populated with the given objects.
|
* Returns a new +Array+ object, populated with the given objects:
|
||||||
*
|
*
|
||||||
* Array.[]( 1, 'a', /^A/) # => [1, "a", /^A/]
|
|
||||||
* Array[1, 'a', /^A/] # => [1, "a", /^A/]
|
* Array[1, 'a', /^A/] # => [1, "a", /^A/]
|
||||||
* [ 1, 'a', /^A/ ] # => [1, "a", /^A/]
|
* Array[] # => []
|
||||||
|
* Array.[](1, 'a', /^A/) # => [1, "a", /^A/]
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user