{"action":"closed","issue":{"url":"https://api.github.com/repos/rubymonsters/ruby-for-beginners/issues/6","labels_url":"https://api.github.com/repos/rubymonsters/ruby-for-beginners/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/rubymonsters/ruby-for-beginners/issues/6/comments","events_url":"https://api.github.com/repos/rubymonsters/ruby-for-beginners/issues/6/events","html_url":"https://github.com/rubymonsters/ruby-for-beginners/issues/6","id":60734209,"number":6,"title":"Exercise 3.3","user":{"login":"musagetin","id":11227143,"avatar_url":"https://avatars.githubusercontent.com/u/11227143?v=3","gravatar_id":"","url":"https://api.github.com/users/musagetin","html_url":"https://github.com/musagetin","followers_url":"https://api.github.com/users/musagetin/followers","following_url":"https://api.github.com/users/musagetin/following{/other_user}","gists_url":"https://api.github.com/users/musagetin/gists{/gist_id}","starred_url":"https://api.github.com/users/musagetin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musagetin/subscriptions","organizations_url":"https://api.github.com/users/musagetin/orgs","repos_url":"https://api.github.com/users/musagetin/repos","events_url":"https://api.github.com/users/musagetin/events{/privacy}","received_events_url":"https://api.github.com/users/musagetin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T21:38:14Z","updated_at":"2015-05-26T10:22:24Z","closed_at":"2015-05-26T10:22:24Z","body":"http://ruby-for-beginners.rubymonstas.org/17-exercises/03-arrays_1.html\r\nMistake in solution:\r\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\nnumbers.select { |number| number.even? } #method select returns a new array, but \"old\" array numbers doesn't change\r\np numbers # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\r\nI propose this solution:\r\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\nnumbers = numbers.select { |number| number.even? }\r\np numbers # [2, 4, 6, 8, 10]"}}