{"action":"created","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25","repository_url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby","labels_url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25/events","html_url":"https://github.com/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25","id":165948193,"number":25,"title":"Removing apples from basket example","user":{"login":"tostonar","id":19528125,"avatar_url":"https://avatars.githubusercontent.com/u/19528125?v=3","gravatar_id":"","url":"https://api.github.com/users/tostonar","html_url":"https://github.com/tostonar","followers_url":"https://api.github.com/users/tostonar/followers","following_url":"https://api.github.com/users/tostonar/following{/other_user}","gists_url":"https://api.github.com/users/tostonar/gists{/gist_id}","starred_url":"https://api.github.com/users/tostonar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tostonar/subscriptions","organizations_url":"https://api.github.com/users/tostonar/orgs","repos_url":"https://api.github.com/users/tostonar/repos","events_url":"https://api.github.com/users/tostonar/events{/privacy}","received_events_url":"https://api.github.com/users/tostonar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-16T21:22:26Z","updated_at":"2016-07-16T21:22:39Z","closed_at":null,"body":"If the goal is to remove all of the 10 apples from the basket, and you're using:\r\n```ruby\r\nbasket = [\"apple 1\",\"apple 2\",\"apple 3\",\"apple 4\",\"apple 5\",\"apple 6\",\"apple 7\",\"apple 8\",\"apple 9\",\"apple 10\"]\r\n \r\napples_in_basket = basket.size # Step 1\r\napples_taken_out = 0 # Step 2\r\n \r\n# Step 3 + 4\r\nwhile apples_taken_out < apples_in_basket\r\n    puts \"Taking out #{basket[apples_taken_out]}\"\r\n    apples_taken_out += 1\r\nend\r\n```\r\nWouldn't the loop stop when 5 apples are taken out? What am I missing here?"},"comment":{"url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby/issues/comments/233151716","html_url":"https://github.com/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25#issuecomment-233151716","issue_url":"https://api.github.com/repos/learn-co-curriculum/iterators-and-abstraction-ruby/issues/25","id":233151716,"user":{"login":"pletcher","id":2015049,"avatar_url":"https://avatars.githubusercontent.com/u/2015049?v=3","gravatar_id":"","url":"https://api.github.com/users/pletcher","html_url":"https://github.com/pletcher","followers_url":"https://api.github.com/users/pletcher/followers","following_url":"https://api.github.com/users/pletcher/following{/other_user}","gists_url":"https://api.github.com/users/pletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/pletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pletcher/subscriptions","organizations_url":"https://api.github.com/users/pletcher/orgs","repos_url":"https://api.github.com/users/pletcher/repos","events_url":"https://api.github.com/users/pletcher/events{/privacy}","received_events_url":"https://api.github.com/users/pletcher/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T21:22:39Z","updated_at":"2016-07-16T21:22:39Z","body":"Thanks for opening this issue!\n\nKeep in mind that this space is for specific issues related to the content of this lesson.\n\nIf you're reporting on the content of this lesson, it'd be super helpful if you could include a stack trace of any errors that you're seeing.\n\nIf you'd like to report a bug about the Learn IDE, the Ask a Question form, opening a file, or the lights not working on Learn, please report a bug directly on https://learn.co. (You can find the bug report form by clicking on your avatar in the upper right, and then selecting \"Report A Bug\".)\n\nPlease be sure to include steps to reproduce (be as detailed as possible) and any relevant information about your environment. (Are you using the Learn IDE? Coding on a refurbished toaster?) We'll be sure to figure out what's going on — and to jump in and help — just as soon as we can. Thanks!"}}
{"actor":{"display_login":"pletcher"}}