The reason for something of the type is array.find{something}.nextnot that it is an array, not a linked list. Each element is its own value; he has no concept of an element after me.
@tokland , , , , . , . , , , .
, , - , , , singleton a:
def a.find_after(&test)
self[find_index(&test).next]
end
a.find_after{|x| x=~/-f/}
- .
, , @BenjaminCox , . , , .