method

drop

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]

1Note

Video Explanation of drop and drop_while

MattStopa ยท Mar 11, 2012