{"action":"created","issue":{"url":"https://api.github.com/repos/munificent/wren/issues/241","labels_url":"https://api.github.com/repos/munificent/wren/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/munificent/wren/issues/241/comments","events_url":"https://api.github.com/repos/munificent/wren/issues/241/events","html_url":"https://github.com/munificent/wren/pull/241","id":64979425,"number":241,"title":"Added Sequence.each","user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars.githubusercontent.com/u/531764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-28T19:32:15Z","updated_at":"2015-04-01T14:10:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/munificent/wren/pulls/241","html_url":"https://github.com/munificent/wren/pull/241","diff_url":"https://github.com/munificent/wren/pull/241.diff","patch_url":"https://github.com/munificent/wren/pull/241.patch"},"body":"This is a bit of a style preference since of course you can always write the same thing with a for loop. However, I think sometimes the code looks better when using this method.\r\n\r\nIt also provides an alternative to `Sequence.map` for cases where you don't need the resulting list, and one that becomes especially necessary when `Sequence.map` is changed to return a new sequence. The example in the `README.md` file was using `Sequence.map` in a way that required this alternative in that case."},"comment":{"url":"https://api.github.com/repos/munificent/wren/issues/comments/88499393","html_url":"https://github.com/munificent/wren/pull/241#issuecomment-88499393","issue_url":"https://api.github.com/repos/munificent/wren/issues/241","id":88499393,"user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T14:10:19Z","updated_at":"2015-04-01T14:10:19Z","body":"Now that I think about it, there's another compelling reason to have `each`. It lets you work with objects that only support `call(_)` but not the iterator protocol."}}