method

drop

Importance_1
Ruby latest stable (v1_8_7_72) - 0 notes - Class: Enumerable
drop(p1) public

Drops first n elements from enum, and returns rest elements in an array.

   a = [1, 2, 3, 4, 5, 0]
   a.drop(3)             # => [4, 5, 0]
Show source
Register or log in to add new notes.