зеркало из https://github.com/github/ruby.git
enhanced Array#delete_if docs by johnnymugs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
67b180748b
Коммит
e9b63c1a22
4
array.c
4
array.c
|
@ -3021,8 +3021,8 @@ rb_ary_reject(VALUE ary)
|
|||
*
|
||||
* If no block is given, an Enumerator is returned instead.
|
||||
*
|
||||
* a = [ "a", "b", "c" ]
|
||||
* a.delete_if {|x| x >= "b" } #=> ["a"]
|
||||
* scores = [ 97, 42, 75 ]
|
||||
* scores.delete_if {|score| score < 80 } #=> [97]
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Загрузка…
Ссылка в новой задаче