{"action":"created","issue":{"url":"https://api.github.com/repos/bluss/rust-itertools/issues/131","repository_url":"https://api.github.com/repos/bluss/rust-itertools","labels_url":"https://api.github.com/repos/bluss/rust-itertools/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/bluss/rust-itertools/issues/131/comments","events_url":"https://api.github.com/repos/bluss/rust-itertools/issues/131/events","html_url":"https://github.com/bluss/rust-itertools/pull/131","id":161162605,"number":131,"title":"Add `exhaust` which simply exhausts the iterator","user":{"login":"tbu-","id":6666593,"avatar_url":"https://avatars.githubusercontent.com/u/6666593?v=3","gravatar_id":"","url":"https://api.github.com/users/tbu-","html_url":"https://github.com/tbu-","followers_url":"https://api.github.com/users/tbu-/followers","following_url":"https://api.github.com/users/tbu-/following{/other_user}","gists_url":"https://api.github.com/users/tbu-/gists{/gist_id}","starred_url":"https://api.github.com/users/tbu-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbu-/subscriptions","organizations_url":"https://api.github.com/users/tbu-/orgs","repos_url":"https://api.github.com/users/tbu-/repos","events_url":"https://api.github.com/users/tbu-/events{/privacy}","received_events_url":"https://api.github.com/users/tbu-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-20T10:18:55Z","updated_at":"2016-08-21T10:23:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bluss/rust-itertools/pulls/131","html_url":"https://github.com/bluss/rust-itertools/pull/131","diff_url":"https://github.com/bluss/rust-itertools/pull/131.diff","patch_url":"https://github.com/bluss/rust-itertools/pull/131.patch"},"body":"This is useful for iterators which are simply used for their side\r\neffects.\r\n\r\nThe new function is added to make intent clearer for places where you'd\r\npreviously call `count` or similar to exhaust the iterator."},"comment":{"url":"https://api.github.com/repos/bluss/rust-itertools/issues/comments/241249651","html_url":"https://github.com/bluss/rust-itertools/pull/131#issuecomment-241249651","issue_url":"https://api.github.com/repos/bluss/rust-itertools/issues/131","id":241249651,"user":{"login":"phimuemue","id":157728,"avatar_url":"https://avatars.githubusercontent.com/u/157728?v=3","gravatar_id":"","url":"https://api.github.com/users/phimuemue","html_url":"https://github.com/phimuemue","followers_url":"https://api.github.com/users/phimuemue/followers","following_url":"https://api.github.com/users/phimuemue/following{/other_user}","gists_url":"https://api.github.com/users/phimuemue/gists{/gist_id}","starred_url":"https://api.github.com/users/phimuemue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phimuemue/subscriptions","organizations_url":"https://api.github.com/users/phimuemue/orgs","repos_url":"https://api.github.com/users/phimuemue/repos","events_url":"https://api.github.com/users/phimuemue/events{/privacy}","received_events_url":"https://api.github.com/users/phimuemue/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T10:23:30Z","updated_at":"2016-08-21T10:23:30Z","body":"Isn't it possible to override the behaviour of `count`, so that it does not necessarily repeatedly call `next` until the end? (E.g. done in https://github.com/rust-lang/rust/blob/7ac11cad3fe85163dd8b0ca1f63af492509f9bfe/src/libcollections/vec.rs)\r\n\r\nI think it would be safer to explicitly call `next` until the iterator is exhausted."}}
{"actor":{"display_login":"phimuemue"}}