Related for Array#<<
This commit is contained in:
parent
570a95805a
commit
ec88979a06
Notes:
git
2024-08-28 20:51:51 +00:00
4
array.c
4
array.c
@ -1373,6 +1373,7 @@ ary_take_first_or_last(int argc, const VALUE *argv, VALUE ary, enum ary_take_pos
|
||||
*
|
||||
* [:foo, 'bar', 2] << [3, 4] # => [:foo, "bar", 2, [3, 4]]
|
||||
*
|
||||
* Related: see {Methods for Assigning}[rdoc-ref:Array@Methods+for+Assigning].
|
||||
*/
|
||||
|
||||
VALUE
|
||||
@ -8617,7 +8618,8 @@ rb_ary_deconstruct(VALUE ary)
|
||||
* These methods add, replace, or reorder elements in +self+.
|
||||
*
|
||||
* - #[]=: Assigns specified elements with a given object.
|
||||
* - #push, #append, #<<: Appends trailing elements.
|
||||
* - #<<: Appends an element.
|
||||
* - #push (and its alias #append): Appends elements.
|
||||
* - #unshift, #prepend: Prepends leading elements.
|
||||
* - #insert: Inserts given objects at a given offset; does not replace elements.
|
||||
* - #concat: Appends all elements from given arrays.
|
||||
|
Loading…
x
Reference in New Issue
Block a user