{"action":"opened","number":547,"pull_request":{"url":"https://api.github.com/repos/apple/swift-evolution/pulls/547","id":90626962,"html_url":"https://github.com/apple/swift-evolution/pull/547","diff_url":"https://github.com/apple/swift-evolution/pull/547.diff","patch_url":"https://github.com/apple/swift-evolution/pull/547.patch","issue_url":"https://api.github.com/repos/apple/swift-evolution/issues/547","number":547,"state":"open","locked":false,"title":"Indexed proposal (for deferred consideration)","user":{"login":"erica","id":32688,"avatar_url":"https://avatars.githubusercontent.com/u/32688?v=3","gravatar_id":"","url":"https://api.github.com/users/erica","html_url":"https://github.com/erica","followers_url":"https://api.github.com/users/erica/followers","following_url":"https://api.github.com/users/erica/following{/other_user}","gists_url":"https://api.github.com/users/erica/gists{/gist_id}","starred_url":"https://api.github.com/users/erica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erica/subscriptions","organizations_url":"https://api.github.com/users/erica/orgs","repos_url":"https://api.github.com/users/erica/repos","events_url":"https://api.github.com/users/erica/events{/privacy}","received_events_url":"https://api.github.com/users/erica/received_events","type":"User","site_admin":false},"body":"This proposal introduces `indexed()` to the standard library, a method on collections that returns an (index, element) tuple sequence. Indices have a specific fixed meaning in Swift. They are used to create valid collection subscripts. This proposal introduces `indexed()` to emit a semantically relevant sequence by pairing a collection's `indices` with its members. \r\n\r\nOur  motivations are: \r\n\r\n* Swift's `enumerated()` method is misleading to naive developers.  `enumerated()` is a method for the `Sequence` protocol, which doesn’t have any indices. Integers are the only thing that make sense there. \r\n* `zip(x.indices, x)` creates an attractive nuisance with suboptimal efficiency. \r\n","created_at":"2016-10-24T14:46:19Z","updated_at":"2016-10-24T14:46:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift-evolution/pulls/547/commits","review_comments_url":"https://api.github.com/repos/apple/swift-evolution/pulls/547/comments","review_comment_url":"https://api.github.com/repos/apple/swift-evolution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift-evolution/issues/547/comments","statuses_url":"https://api.github.com/repos/apple/swift-evolution/statuses/abbba417bc314b65e00393b371454be757c83826","head":{"label":"erica:indexed","ref":"indexed","sha":"abbba417bc314b65e00393b371454be757c83826","user":{"login":"erica","id":32688,"avatar_url":"https://avatars.githubusercontent.com/u/32688?v=3","gravatar_id":"","url":"https://api.github.com/users/erica","html_url":"https://github.com/erica","followers_url":"https://api.github.com/users/erica/followers","following_url":"https://api.github.com/users/erica/following{/other_user}","gists_url":"https://api.github.com/users/erica/gists{/gist_id}","starred_url":"https://api.github.com/users/erica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erica/subscriptions","organizations_url":"https://api.github.com/users/erica/orgs","repos_url":"https://api.github.com/users/erica/repos","events_url":"https://api.github.com/users/erica/events{/privacy}","received_events_url":"https://api.github.com/users/erica/received_events","type":"User","site_admin":false},"repo":{"id":52917717,"name":"swift-evolution","full_name":"erica/swift-evolution","owner":{"login":"erica","id":32688,"avatar_url":"https://avatars.githubusercontent.com/u/32688?v=3","gravatar_id":"","url":"https://api.github.com/users/erica","html_url":"https://github.com/erica","followers_url":"https://api.github.com/users/erica/followers","following_url":"https://api.github.com/users/erica/following{/other_user}","gists_url":"https://api.github.com/users/erica/gists{/gist_id}","starred_url":"https://api.github.com/users/erica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erica/subscriptions","organizations_url":"https://api.github.com/users/erica/orgs","repos_url":"https://api.github.com/users/erica/repos","events_url":"https://api.github.com/users/erica/events{/privacy}","received_events_url":"https://api.github.com/users/erica/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erica/swift-evolution","description":"This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.","fork":true,"url":"https://api.github.com/repos/erica/swift-evolution","forks_url":"https://api.github.com/repos/erica/swift-evolution/forks","keys_url":"https://api.github.com/repos/erica/swift-evolution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erica/swift-evolution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erica/swift-evolution/teams","hooks_url":"https://api.github.com/repos/erica/swift-evolution/hooks","issue_events_url":"https://api.github.com/repos/erica/swift-evolution/issues/events{/number}","events_url":"https://api.github.com/repos/erica/swift-evolution/events","assignees_url":"https://api.github.com/repos/erica/swift-evolution/assignees{/user}","branches_url":"https://api.github.com/repos/erica/swift-evolution/branches{/branch}","tags_url":"https://api.github.com/repos/erica/swift-evolution/tags","blobs_url":"https://api.github.com/repos/erica/swift-evolution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erica/swift-evolution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erica/swift-evolution/git/refs{/sha}","trees_url":"https://api.github.com/repos/erica/swift-evolution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erica/swift-evolution/statuses/{sha}","languages_url":"https://api.github.com/repos/erica/swift-evolution/languages","stargazers_url":"https://api.github.com/repos/erica/swift-evolution/stargazers","contributors_url":"https://api.github.com/repos/erica/swift-evolution/contributors","subscribers_url":"https://api.github.com/repos/erica/swift-evolution/subscribers","subscription_url":"https://api.github.com/repos/erica/swift-evolution/subscription","commits_url":"https://api.github.com/repos/erica/swift-evolution/commits{/sha}","git_commits_url":"https://api.github.com/repos/erica/swift-evolution/git/commits{/sha}","comments_url":"https://api.github.com/repos/erica/swift-evolution/comments{/number}","issue_comment_url":"https://api.github.com/repos/erica/swift-evolution/issues/comments{/number}","contents_url":"https://api.github.com/repos/erica/swift-evolution/contents/{+path}","compare_url":"https://api.github.com/repos/erica/swift-evolution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erica/swift-evolution/merges","archive_url":"https://api.github.com/repos/erica/swift-evolution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erica/swift-evolution/downloads","issues_url":"https://api.github.com/repos/erica/swift-evolution/issues{/number}","pulls_url":"https://api.github.com/repos/erica/swift-evolution/pulls{/number}","milestones_url":"https://api.github.com/repos/erica/swift-evolution/milestones{/number}","notifications_url":"https://api.github.com/repos/erica/swift-evolution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erica/swift-evolution/labels{/name}","releases_url":"https://api.github.com/repos/erica/swift-evolution/releases{/id}","deployments_url":"https://api.github.com/repos/erica/swift-evolution/deployments","created_at":"2016-03-01T23:21:46Z","updated_at":"2016-03-01T22:49:45Z","pushed_at":"2016-10-24T14:45:26Z","git_url":"git://github.com/erica/swift-evolution.git","ssh_url":"git@github.com:erica/swift-evolution.git","clone_url":"https://github.com/erica/swift-evolution.git","svn_url":"https://github.com/erica/swift-evolution","homepage":"","size":1473,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apple:master","ref":"master","sha":"68367bd395fdc25a2570d48278d8970b46df398b","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":45497910,"name":"swift-evolution","full_name":"apple/swift-evolution","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift-evolution","description":"This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.","fork":false,"url":"https://api.github.com/repos/apple/swift-evolution","forks_url":"https://api.github.com/repos/apple/swift-evolution/forks","keys_url":"https://api.github.com/repos/apple/swift-evolution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift-evolution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift-evolution/teams","hooks_url":"https://api.github.com/repos/apple/swift-evolution/hooks","issue_events_url":"https://api.github.com/repos/apple/swift-evolution/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift-evolution/events","assignees_url":"https://api.github.com/repos/apple/swift-evolution/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift-evolution/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift-evolution/tags","blobs_url":"https://api.github.com/repos/apple/swift-evolution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift-evolution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift-evolution/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift-evolution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift-evolution/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift-evolution/languages","stargazers_url":"https://api.github.com/repos/apple/swift-evolution/stargazers","contributors_url":"https://api.github.com/repos/apple/swift-evolution/contributors","subscribers_url":"https://api.github.com/repos/apple/swift-evolution/subscribers","subscription_url":"https://api.github.com/repos/apple/swift-evolution/subscription","commits_url":"https://api.github.com/repos/apple/swift-evolution/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift-evolution/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift-evolution/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift-evolution/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift-evolution/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift-evolution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift-evolution/merges","archive_url":"https://api.github.com/repos/apple/swift-evolution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift-evolution/downloads","issues_url":"https://api.github.com/repos/apple/swift-evolution/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift-evolution/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift-evolution/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift-evolution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift-evolution/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift-evolution/releases{/id}","deployments_url":"https://api.github.com/repos/apple/swift-evolution/deployments","created_at":"2015-11-03T21:49:37Z","updated_at":"2016-10-24T13:43:07Z","pushed_at":"2016-10-24T14:46:20Z","git_url":"git://github.com/apple/swift-evolution.git","ssh_url":"git@github.com:apple/swift-evolution.git","clone_url":"https://github.com/apple/swift-evolution.git","svn_url":"https://github.com/apple/swift-evolution","homepage":"http://apple.github.io/swift-evolution/","size":3026,"stargazers_count":5890,"watchers_count":5890,"language":"XSLT","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":891,"mirror_url":null,"open_issues_count":19,"forks":891,"open_issues":19,"watchers":5890,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/547"},"html":{"href":"https://github.com/apple/swift-evolution/pull/547"},"issue":{"href":"https://api.github.com/repos/apple/swift-evolution/issues/547"},"comments":{"href":"https://api.github.com/repos/apple/swift-evolution/issues/547/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/547/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/547/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift-evolution/statuses/abbba417bc314b65e00393b371454be757c83826"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":69,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"erica"}}