Skip to content

Instantly share code, notes, and snippets.

@bobbywilson0
Created March 11, 2009 19:45
Show Gist options
  • Save bobbywilson0/77676 to your computer and use it in GitHub Desktop.
Save bobbywilson0/77676 to your computer and use it in GitHub Desktop.
>> array = ["a", "b", "c", "d"]
=> ["a", "b", "c", "d"]
>> array.each do |el| array.shift end
=> ["c", "d"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment