{"action":"opened","number":8383,"pull_request":{"url":"https://api.github.com/repos/nim-lang/Nim/pulls/8383","id":202925610,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyOTI1NjEw","html_url":"https://github.com/nim-lang/Nim/pull/8383","diff_url":"https://github.com/nim-lang/Nim/pull/8383.diff","patch_url":"https://github.com/nim-lang/Nim/pull/8383.patch","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/8383","number":8383,"state":"open","locked":false,"title":"add sets.pop procedure (analogue to python)","user":{"login":"skilchen","id":8120120,"node_id":"MDQ6VXNlcjgxMjAxMjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8120120?v=4","gravatar_id":"","url":"https://api.github.com/users/skilchen","html_url":"https://github.com/skilchen","followers_url":"https://api.github.com/users/skilchen/followers","following_url":"https://api.github.com/users/skilchen/following{/other_user}","gists_url":"https://api.github.com/users/skilchen/gists{/gist_id}","starred_url":"https://api.github.com/users/skilchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skilchen/subscriptions","organizations_url":"https://api.github.com/users/skilchen/orgs","repos_url":"https://api.github.com/users/skilchen/repos","events_url":"https://api.github.com/users/skilchen/events{/privacy}","received_events_url":"https://api.github.com/users/skilchen/received_events","type":"User","site_admin":false},"body":"```nim\r\nproc pop*[A](s: var HashSet[A]): A =\r\n  ## Remove and return an arbitrary element from the set.\r\n  ## Raises KeyError if the set is empty.\r\n  ##\r\n  var elem: A\r\n  for h in 0..high(s.data):\r\n    if isFilled(s.data[h].hcode):\r\n      elem = s.data[h].key\r\n      excl(s, elem)\r\n      return elem\r\n  raise newException(KeyError, \"set is empty\")\r\n```","created_at":"2018-07-20T18:36:53Z","updated_at":"2018-07-20T18:36:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nim-lang/Nim/pulls/8383/commits","review_comments_url":"https://api.github.com/repos/nim-lang/Nim/pulls/8383/comments","review_comment_url":"https://api.github.com/repos/nim-lang/Nim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/8383/comments","statuses_url":"https://api.github.com/repos/nim-lang/Nim/statuses/f0bdd12acbaea69163eb8a5f5bbe7c1eec9541b4","head":{"label":"skilchen:add_set_pop_procedure","ref":"add_set_pop_procedure","sha":"f0bdd12acbaea69163eb8a5f5bbe7c1eec9541b4","user":{"login":"skilchen","id":8120120,"node_id":"MDQ6VXNlcjgxMjAxMjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8120120?v=4","gravatar_id":"","url":"https://api.github.com/users/skilchen","html_url":"https://github.com/skilchen","followers_url":"https://api.github.com/users/skilchen/followers","following_url":"https://api.github.com/users/skilchen/following{/other_user}","gists_url":"https://api.github.com/users/skilchen/gists{/gist_id}","starred_url":"https://api.github.com/users/skilchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skilchen/subscriptions","organizations_url":"https://api.github.com/users/skilchen/orgs","repos_url":"https://api.github.com/users/skilchen/repos","events_url":"https://api.github.com/users/skilchen/events{/privacy}","received_events_url":"https://api.github.com/users/skilchen/received_events","type":"User","site_admin":false},"repo":{"id":113577114,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM1NzcxMTQ=","name":"Nim","full_name":"skilchen/Nim","owner":{"login":"skilchen","id":8120120,"node_id":"MDQ6VXNlcjgxMjAxMjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8120120?v=4","gravatar_id":"","url":"https://api.github.com/users/skilchen","html_url":"https://github.com/skilchen","followers_url":"https://api.github.com/users/skilchen/followers","following_url":"https://api.github.com/users/skilchen/following{/other_user}","gists_url":"https://api.github.com/users/skilchen/gists{/gist_id}","starred_url":"https://api.github.com/users/skilchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skilchen/subscriptions","organizations_url":"https://api.github.com/users/skilchen/orgs","repos_url":"https://api.github.com/users/skilchen/repos","events_url":"https://api.github.com/users/skilchen/events{/privacy}","received_events_url":"https://api.github.com/users/skilchen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skilchen/Nim","description":"Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in the order of priority).","fork":true,"url":"https://api.github.com/repos/skilchen/Nim","forks_url":"https://api.github.com/repos/skilchen/Nim/forks","keys_url":"https://api.github.com/repos/skilchen/Nim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skilchen/Nim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skilchen/Nim/teams","hooks_url":"https://api.github.com/repos/skilchen/Nim/hooks","issue_events_url":"https://api.github.com/repos/skilchen/Nim/issues/events{/number}","events_url":"https://api.github.com/repos/skilchen/Nim/events","assignees_url":"https://api.github.com/repos/skilchen/Nim/assignees{/user}","branches_url":"https://api.github.com/repos/skilchen/Nim/branches{/branch}","tags_url":"https://api.github.com/repos/skilchen/Nim/tags","blobs_url":"https://api.github.com/repos/skilchen/Nim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skilchen/Nim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skilchen/Nim/git/refs{/sha}","trees_url":"https://api.github.com/repos/skilchen/Nim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skilchen/Nim/statuses/{sha}","languages_url":"https://api.github.com/repos/skilchen/Nim/languages","stargazers_url":"https://api.github.com/repos/skilchen/Nim/stargazers","contributors_url":"https://api.github.com/repos/skilchen/Nim/contributors","subscribers_url":"https://api.github.com/repos/skilchen/Nim/subscribers","subscription_url":"https://api.github.com/repos/skilchen/Nim/subscription","commits_url":"https://api.github.com/repos/skilchen/Nim/commits{/sha}","git_commits_url":"https://api.github.com/repos/skilchen/Nim/git/commits{/sha}","comments_url":"https://api.github.com/repos/skilchen/Nim/comments{/number}","issue_comment_url":"https://api.github.com/repos/skilchen/Nim/issues/comments{/number}","contents_url":"https://api.github.com/repos/skilchen/Nim/contents/{+path}","compare_url":"https://api.github.com/repos/skilchen/Nim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skilchen/Nim/merges","archive_url":"https://api.github.com/repos/skilchen/Nim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skilchen/Nim/downloads","issues_url":"https://api.github.com/repos/skilchen/Nim/issues{/number}","pulls_url":"https://api.github.com/repos/skilchen/Nim/pulls{/number}","milestones_url":"https://api.github.com/repos/skilchen/Nim/milestones{/number}","notifications_url":"https://api.github.com/repos/skilchen/Nim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skilchen/Nim/labels{/name}","releases_url":"https://api.github.com/repos/skilchen/Nim/releases{/id}","deployments_url":"https://api.github.com/repos/skilchen/Nim/deployments","created_at":"2017-12-08T13:26:32Z","updated_at":"2018-07-18T21:29:25Z","pushed_at":"2018-07-20T18:35:31Z","git_url":"git://github.com/skilchen/Nim.git","ssh_url":"git@github.com:skilchen/Nim.git","clone_url":"https://github.com/skilchen/Nim.git","svn_url":"https://github.com/skilchen/Nim","homepage":"http://nim-lang.org/","size":69372,"stargazers_count":0,"watchers_count":0,"language":"Nim","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"nim-lang:devel","ref":"devel","sha":"9c3336dcffcb10f662f5c358f63d073db1454116","user":{"login":"nim-lang","id":603863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMzg2Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/603863?v=4","gravatar_id":"","url":"https://api.github.com/users/nim-lang","html_url":"https://github.com/nim-lang","followers_url":"https://api.github.com/users/nim-lang/followers","following_url":"https://api.github.com/users/nim-lang/following{/other_user}","gists_url":"https://api.github.com/users/nim-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/nim-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim-lang/subscriptions","organizations_url":"https://api.github.com/users/nim-lang/orgs","repos_url":"https://api.github.com/users/nim-lang/repos","events_url":"https://api.github.com/users/nim-lang/events{/privacy}","received_events_url":"https://api.github.com/users/nim-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":842037,"node_id":"MDEwOlJlcG9zaXRvcnk4NDIwMzc=","name":"Nim","full_name":"nim-lang/Nim","owner":{"login":"nim-lang","id":603863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMzg2Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/603863?v=4","gravatar_id":"","url":"https://api.github.com/users/nim-lang","html_url":"https://github.com/nim-lang","followers_url":"https://api.github.com/users/nim-lang/followers","following_url":"https://api.github.com/users/nim-lang/following{/other_user}","gists_url":"https://api.github.com/users/nim-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/nim-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nim-lang/subscriptions","organizations_url":"https://api.github.com/users/nim-lang/orgs","repos_url":"https://api.github.com/users/nim-lang/repos","events_url":"https://api.github.com/users/nim-lang/events{/privacy}","received_events_url":"https://api.github.com/users/nim-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nim-lang/Nim","description":"Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).","fork":false,"url":"https://api.github.com/repos/nim-lang/Nim","forks_url":"https://api.github.com/repos/nim-lang/Nim/forks","keys_url":"https://api.github.com/repos/nim-lang/Nim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nim-lang/Nim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nim-lang/Nim/teams","hooks_url":"https://api.github.com/repos/nim-lang/Nim/hooks","issue_events_url":"https://api.github.com/repos/nim-lang/Nim/issues/events{/number}","events_url":"https://api.github.com/repos/nim-lang/Nim/events","assignees_url":"https://api.github.com/repos/nim-lang/Nim/assignees{/user}","branches_url":"https://api.github.com/repos/nim-lang/Nim/branches{/branch}","tags_url":"https://api.github.com/repos/nim-lang/Nim/tags","blobs_url":"https://api.github.com/repos/nim-lang/Nim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nim-lang/Nim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nim-lang/Nim/git/refs{/sha}","trees_url":"https://api.github.com/repos/nim-lang/Nim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nim-lang/Nim/statuses/{sha}","languages_url":"https://api.github.com/repos/nim-lang/Nim/languages","stargazers_url":"https://api.github.com/repos/nim-lang/Nim/stargazers","contributors_url":"https://api.github.com/repos/nim-lang/Nim/contributors","subscribers_url":"https://api.github.com/repos/nim-lang/Nim/subscribers","subscription_url":"https://api.github.com/repos/nim-lang/Nim/subscription","commits_url":"https://api.github.com/repos/nim-lang/Nim/commits{/sha}","git_commits_url":"https://api.github.com/repos/nim-lang/Nim/git/commits{/sha}","comments_url":"https://api.github.com/repos/nim-lang/Nim/comments{/number}","issue_comment_url":"https://api.github.com/repos/nim-lang/Nim/issues/comments{/number}","contents_url":"https://api.github.com/repos/nim-lang/Nim/contents/{+path}","compare_url":"https://api.github.com/repos/nim-lang/Nim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nim-lang/Nim/merges","archive_url":"https://api.github.com/repos/nim-lang/Nim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nim-lang/Nim/downloads","issues_url":"https://api.github.com/repos/nim-lang/Nim/issues{/number}","pulls_url":"https://api.github.com/repos/nim-lang/Nim/pulls{/number}","milestones_url":"https://api.github.com/repos/nim-lang/Nim/milestones{/number}","notifications_url":"https://api.github.com/repos/nim-lang/Nim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nim-lang/Nim/labels{/name}","releases_url":"https://api.github.com/repos/nim-lang/Nim/releases{/id}","deployments_url":"https://api.github.com/repos/nim-lang/Nim/deployments","created_at":"2010-08-16T20:38:58Z","updated_at":"2018-07-20T17:48:27Z","pushed_at":"2018-07-20T17:48:12Z","git_url":"git://github.com/nim-lang/Nim.git","ssh_url":"git@github.com:nim-lang/Nim.git","clone_url":"https://github.com/nim-lang/Nim.git","svn_url":"https://github.com/nim-lang/Nim","homepage":"https://nim-lang.org/","size":69514,"stargazers_count":5204,"watchers_count":5204,"language":"Nim","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":678,"mirror_url":null,"archived":false,"open_issues_count":1460,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":678,"open_issues":1460,"watchers":5204,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/nim-lang/Nim/pulls/8383"},"html":{"href":"https://github.com/nim-lang/Nim/pull/8383"},"issue":{"href":"https://api.github.com/repos/nim-lang/Nim/issues/8383"},"comments":{"href":"https://api.github.com/repos/nim-lang/Nim/issues/8383/comments"},"review_comments":{"href":"https://api.github.com/repos/nim-lang/Nim/pulls/8383/comments"},"review_comment":{"href":"https://api.github.com/repos/nim-lang/Nim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nim-lang/Nim/pulls/8383/commits"},"statuses":{"href":"https://api.github.com/repos/nim-lang/Nim/statuses/f0bdd12acbaea69163eb8a5f5bbe7c1eec9541b4"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":34,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"skilchen"}}