{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/8939","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/8939/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/8939/comments","events_url":"https://api.github.com/repos/apple/swift/issues/8939/events","html_url":"https://github.com/apple/swift/pull/8939","id":223568482,"number":8939,"title":"[stdlib] Give Sequence a top-level Element","user":{"login":"airspeedswift","id":8058277,"avatar_url":"https://avatars2.githubusercontent.com/u/8058277?v=3","gravatar_id":"","url":"https://api.github.com/users/airspeedswift","html_url":"https://github.com/airspeedswift","followers_url":"https://api.github.com/users/airspeedswift/followers","following_url":"https://api.github.com/users/airspeedswift/following{/other_user}","gists_url":"https://api.github.com/users/airspeedswift/gists{/gist_id}","starred_url":"https://api.github.com/users/airspeedswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airspeedswift/subscriptions","organizations_url":"https://api.github.com/users/airspeedswift/orgs","repos_url":"https://api.github.com/users/airspeedswift/repos","events_url":"https://api.github.com/users/airspeedswift/events{/privacy}","received_events_url":"https://api.github.com/users/airspeedswift/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-04-22T14:31:59Z","updated_at":"2017-04-24T14:19:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/8939","html_url":"https://github.com/apple/swift/pull/8939","diff_url":"https://github.com/apple/swift/pull/8939.diff","patch_url":"https://github.com/apple/swift/pull/8939.patch"},"body":"Adds an `associatedtype Element` to `Sequence`, then constrains `Iterator.Element` to match it.\r\n"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/296683085","html_url":"https://github.com/apple/swift/pull/8939#issuecomment-296683085","issue_url":"https://api.github.com/repos/apple/swift/issues/8939","id":296683085,"user":{"login":"airspeedswift","id":8058277,"avatar_url":"https://avatars2.githubusercontent.com/u/8058277?v=3","gravatar_id":"","url":"https://api.github.com/users/airspeedswift","html_url":"https://github.com/airspeedswift","followers_url":"https://api.github.com/users/airspeedswift/followers","following_url":"https://api.github.com/users/airspeedswift/following{/other_user}","gists_url":"https://api.github.com/users/airspeedswift/gists{/gist_id}","starred_url":"https://api.github.com/users/airspeedswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airspeedswift/subscriptions","organizations_url":"https://api.github.com/users/airspeedswift/orgs","repos_url":"https://api.github.com/users/airspeedswift/repos","events_url":"https://api.github.com/users/airspeedswift/events{/privacy}","received_events_url":"https://api.github.com/users/airspeedswift/received_events","type":"User","site_admin":false},"created_at":"2017-04-24T14:19:37Z","updated_at":"2017-04-24T14:19:37Z","body":"@timvermeulen right, that's my reasoning too. If you sat down with a blank screen but already had this feature in Swift, this is probably how you'd define it. In many cases both `Element` and `Iterator.Element` will usually be inferred. If you think about the common simple definitions of a new `Collection`, say, you would usually ignore `Iterator` and mostly focus on defining the `Element` in terms of what `subscript` returns."}}
{"actor":{"display_login":"airspeedswift"}}