{"action":"closed","number":16,"pull_request":{"url":"https://api.github.com/repos/47deg/scala-exercises/pulls/16","id":30625074,"html_url":"https://github.com/47deg/scala-exercises/pull/16","diff_url":"https://github.com/47deg/scala-exercises/pull/16.diff","patch_url":"https://github.com/47deg/scala-exercises/pull/16.patch","issue_url":"https://api.github.com/repos/47deg/scala-exercises/issues/16","number":16,"state":"closed","locked":false,"title":"fixed closure sample","user":{"login":"michaelmosmann","id":323301,"avatar_url":"https://avatars.githubusercontent.com/u/323301?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelmosmann","html_url":"https://github.com/michaelmosmann","followers_url":"https://api.github.com/users/michaelmosmann/followers","following_url":"https://api.github.com/users/michaelmosmann/following{/other_user}","gists_url":"https://api.github.com/users/michaelmosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelmosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelmosmann/subscriptions","organizations_url":"https://api.github.com/users/michaelmosmann/orgs","repos_url":"https://api.github.com/users/michaelmosmann/repos","events_url":"https://api.github.com/users/michaelmosmann/events{/privacy}","received_events_url":"https://api.github.com/users/michaelmosmann/received_events","type":"User","site_admin":false},"body":"A closure captures the values from surrounding context just once. It will not change anything if someone changes a value after the capture, so the samples are a bit misleading...\r\n","created_at":"2015-03-06T07:07:24Z","updated_at":"2015-03-06T10:00:49Z","closed_at":"2015-03-06T10:00:49Z","merged_at":null,"merge_commit_sha":"dfe24b0ff9e4b4239871fe477a401ef424b2c544","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/47deg/scala-exercises/pulls/16/commits","review_comments_url":"https://api.github.com/repos/47deg/scala-exercises/pulls/16/comments","review_comment_url":"https://api.github.com/repos/47deg/scala-exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/47deg/scala-exercises/issues/16/comments","statuses_url":"https://api.github.com/repos/47deg/scala-exercises/statuses/d77b915719b0b997dc99a78155e93686e8f5ee78","head":{"label":"michaelmosmann:master","ref":"master","sha":"d77b915719b0b997dc99a78155e93686e8f5ee78","user":{"login":"michaelmosmann","id":323301,"avatar_url":"https://avatars.githubusercontent.com/u/323301?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelmosmann","html_url":"https://github.com/michaelmosmann","followers_url":"https://api.github.com/users/michaelmosmann/followers","following_url":"https://api.github.com/users/michaelmosmann/following{/other_user}","gists_url":"https://api.github.com/users/michaelmosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelmosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelmosmann/subscriptions","organizations_url":"https://api.github.com/users/michaelmosmann/orgs","repos_url":"https://api.github.com/users/michaelmosmann/repos","events_url":"https://api.github.com/users/michaelmosmann/events{/privacy}","received_events_url":"https://api.github.com/users/michaelmosmann/received_events","type":"User","site_admin":false},"repo":{"id":31756698,"name":"scala-exercises","full_name":"michaelmosmann/scala-exercises","owner":{"login":"michaelmosmann","id":323301,"avatar_url":"https://avatars.githubusercontent.com/u/323301?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelmosmann","html_url":"https://github.com/michaelmosmann","followers_url":"https://api.github.com/users/michaelmosmann/followers","following_url":"https://api.github.com/users/michaelmosmann/following{/other_user}","gists_url":"https://api.github.com/users/michaelmosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelmosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelmosmann/subscriptions","organizations_url":"https://api.github.com/users/michaelmosmann/orgs","repos_url":"https://api.github.com/users/michaelmosmann/repos","events_url":"https://api.github.com/users/michaelmosmann/events{/privacy}","received_events_url":"https://api.github.com/users/michaelmosmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelmosmann/scala-exercises","description":"The easy way to learn Scala.","fork":true,"url":"https://api.github.com/repos/michaelmosmann/scala-exercises","forks_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/forks","keys_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/teams","hooks_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/hooks","issue_events_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/events","assignees_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/tags","blobs_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/languages","stargazers_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/stargazers","contributors_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/contributors","subscribers_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/subscribers","subscription_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/subscription","commits_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/merges","archive_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/downloads","issues_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/labels{/name}","releases_url":"https://api.github.com/repos/michaelmosmann/scala-exercises/releases{/id}","created_at":"2015-03-06T06:57:02Z","updated_at":"2015-03-06T07:04:54Z","pushed_at":"2015-03-06T07:04:53Z","git_url":"git://github.com/michaelmosmann/scala-exercises.git","ssh_url":"git@github.com:michaelmosmann/scala-exercises.git","clone_url":"https://github.com/michaelmosmann/scala-exercises.git","svn_url":"https://github.com/michaelmosmann/scala-exercises","homepage":"http://scala-exercises.47deg.com","size":8244,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"47deg:master","ref":"master","sha":"f60f3018be41d3718f8028554588e4a34a5da480","user":{"login":"47deg","id":479857,"avatar_url":"https://avatars.githubusercontent.com/u/479857?v=3","gravatar_id":"","url":"https://api.github.com/users/47deg","html_url":"https://github.com/47deg","followers_url":"https://api.github.com/users/47deg/followers","following_url":"https://api.github.com/users/47deg/following{/other_user}","gists_url":"https://api.github.com/users/47deg/gists{/gist_id}","starred_url":"https://api.github.com/users/47deg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/47deg/subscriptions","organizations_url":"https://api.github.com/users/47deg/orgs","repos_url":"https://api.github.com/users/47deg/repos","events_url":"https://api.github.com/users/47deg/events{/privacy}","received_events_url":"https://api.github.com/users/47deg/received_events","type":"Organization","site_admin":false},"repo":{"id":23613922,"name":"scala-exercises","full_name":"47deg/scala-exercises","owner":{"login":"47deg","id":479857,"avatar_url":"https://avatars.githubusercontent.com/u/479857?v=3","gravatar_id":"","url":"https://api.github.com/users/47deg","html_url":"https://github.com/47deg","followers_url":"https://api.github.com/users/47deg/followers","following_url":"https://api.github.com/users/47deg/following{/other_user}","gists_url":"https://api.github.com/users/47deg/gists{/gist_id}","starred_url":"https://api.github.com/users/47deg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/47deg/subscriptions","organizations_url":"https://api.github.com/users/47deg/orgs","repos_url":"https://api.github.com/users/47deg/repos","events_url":"https://api.github.com/users/47deg/events{/privacy}","received_events_url":"https://api.github.com/users/47deg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/47deg/scala-exercises","description":"The easy way to learn Scala.","fork":false,"url":"https://api.github.com/repos/47deg/scala-exercises","forks_url":"https://api.github.com/repos/47deg/scala-exercises/forks","keys_url":"https://api.github.com/repos/47deg/scala-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/47deg/scala-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/47deg/scala-exercises/teams","hooks_url":"https://api.github.com/repos/47deg/scala-exercises/hooks","issue_events_url":"https://api.github.com/repos/47deg/scala-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/47deg/scala-exercises/events","assignees_url":"https://api.github.com/repos/47deg/scala-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/47deg/scala-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/47deg/scala-exercises/tags","blobs_url":"https://api.github.com/repos/47deg/scala-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/47deg/scala-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/47deg/scala-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/47deg/scala-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/47deg/scala-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/47deg/scala-exercises/languages","stargazers_url":"https://api.github.com/repos/47deg/scala-exercises/stargazers","contributors_url":"https://api.github.com/repos/47deg/scala-exercises/contributors","subscribers_url":"https://api.github.com/repos/47deg/scala-exercises/subscribers","subscription_url":"https://api.github.com/repos/47deg/scala-exercises/subscription","commits_url":"https://api.github.com/repos/47deg/scala-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/47deg/scala-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/47deg/scala-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/47deg/scala-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/47deg/scala-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/47deg/scala-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/47deg/scala-exercises/merges","archive_url":"https://api.github.com/repos/47deg/scala-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/47deg/scala-exercises/downloads","issues_url":"https://api.github.com/repos/47deg/scala-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/47deg/scala-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/47deg/scala-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/47deg/scala-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/47deg/scala-exercises/labels{/name}","releases_url":"https://api.github.com/repos/47deg/scala-exercises/releases{/id}","created_at":"2014-09-03T09:14:41Z","updated_at":"2015-03-06T09:19:50Z","pushed_at":"2015-03-06T08:41:54Z","git_url":"git://github.com/47deg/scala-exercises.git","ssh_url":"git@github.com:47deg/scala-exercises.git","clone_url":"https://github.com/47deg/scala-exercises.git","svn_url":"https://github.com/47deg/scala-exercises","homepage":"http://scala-exercises.47deg.com","size":8244,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":2,"forks":24,"open_issues":2,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/47deg/scala-exercises/pulls/16"},"html":{"href":"https://github.com/47deg/scala-exercises/pull/16"},"issue":{"href":"https://api.github.com/repos/47deg/scala-exercises/issues/16"},"comments":{"href":"https://api.github.com/repos/47deg/scala-exercises/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/47deg/scala-exercises/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/47deg/scala-exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/47deg/scala-exercises/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/47deg/scala-exercises/statuses/d77b915719b0b997dc99a78155e93686e8f5ee78"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":4,"deletions":5,"changed_files":1}}