[DOC] Tweaks for Array#unshift
This commit is contained in:
parent
044f6ba23d
commit
45edfa73ce
Notes:
git
2024-10-08 15:09:28 +00:00
6
array.c
6
array.c
@ -1682,14 +1682,16 @@ ary_ensure_room_for_unshift(VALUE ary, int argc)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* array.unshift(*objects) -> self
|
||||
* unshift(*objects) -> self
|
||||
* prepend(*objects) -> self
|
||||
*
|
||||
* Prepends the given +objects+ to +self+:
|
||||
*
|
||||
* a = [:foo, 'bar', 2]
|
||||
* a.unshift(:bam, :bat) # => [:bam, :bat, :foo, "bar", 2]
|
||||
*
|
||||
* Related: #push, #pop, #shift.
|
||||
* Related: Array#shift;
|
||||
* see also {Methods for Assigning}[rdoc-ref:Array@Methods+for+Assigning].
|
||||
*/
|
||||
|
||||
VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user