Project

General

Profile

Bug #8207 ยป 0001-Clarify-Array-delete_if-docs.patch

johnnymugs (Jonathan Mukai), 04/03/2013 10:34 AM

View differences:

array.c
*
* 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
    (1-1/1)