{"action":"opened","number":60,"pull_request":{"url":"https://api.github.com/repos/antitypical/Result/pulls/60","id":37431019,"html_url":"https://github.com/antitypical/Result/pull/60","diff_url":"https://github.com/antitypical/Result/pull/60.diff","patch_url":"https://github.com/antitypical/Result/pull/60.patch","issue_url":"https://api.github.com/repos/antitypical/Result/issues/60","number":60,"state":"open","locked":false,"title":"Add function version of `materialize`","user":{"login":"ishkawa","id":966856,"avatar_url":"https://avatars.githubusercontent.com/u/966856?v=3","gravatar_id":"","url":"https://api.github.com/users/ishkawa","html_url":"https://github.com/ishkawa","followers_url":"https://api.github.com/users/ishkawa/followers","following_url":"https://api.github.com/users/ishkawa/following{/other_user}","gists_url":"https://api.github.com/users/ishkawa/gists{/gist_id}","starred_url":"https://api.github.com/users/ishkawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishkawa/subscriptions","organizations_url":"https://api.github.com/users/ishkawa/orgs","repos_url":"https://api.github.com/users/ishkawa/repos","events_url":"https://api.github.com/users/ishkawa/events{/privacy}","received_events_url":"https://api.github.com/users/ishkawa/received_events","type":"User","site_admin":false},"body":"CAUTION: This patch is also not working for now in the same way as #56 .\r\nhttps://twitter.com/gfontenot/status/608774708159324161\r\n\r\n#56 is great, but function version of `materialize` is easier to derive `Result` from failable closure.\r\n\r\n```swift\r\nlet data = NSData()\r\nlet result = materialize {\r\n\ttry NSJSONSerialization.JSONObjectWithData(data, options: [])\r\n}\r\n```","created_at":"2015-06-11T05:50:38Z","updated_at":"2015-06-11T05:50:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/antitypical/Result/pulls/60/commits","review_comments_url":"https://api.github.com/repos/antitypical/Result/pulls/60/comments","review_comment_url":"https://api.github.com/repos/antitypical/Result/pulls/comments{/number}","comments_url":"https://api.github.com/repos/antitypical/Result/issues/60/comments","statuses_url":"https://api.github.com/repos/antitypical/Result/statuses/9fdc03197ddec6d82c90e72c924972dd0cd9bfd6","head":{"label":"ishkawa:materialize-func","ref":"materialize-func","sha":"9fdc03197ddec6d82c90e72c924972dd0cd9bfd6","user":{"login":"ishkawa","id":966856,"avatar_url":"https://avatars.githubusercontent.com/u/966856?v=3","gravatar_id":"","url":"https://api.github.com/users/ishkawa","html_url":"https://github.com/ishkawa","followers_url":"https://api.github.com/users/ishkawa/followers","following_url":"https://api.github.com/users/ishkawa/following{/other_user}","gists_url":"https://api.github.com/users/ishkawa/gists{/gist_id}","starred_url":"https://api.github.com/users/ishkawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishkawa/subscriptions","organizations_url":"https://api.github.com/users/ishkawa/orgs","repos_url":"https://api.github.com/users/ishkawa/repos","events_url":"https://api.github.com/users/ishkawa/events{/privacy}","received_events_url":"https://api.github.com/users/ishkawa/received_events","type":"User","site_admin":false},"repo":{"id":37238610,"name":"Result","full_name":"ishkawa/Result","owner":{"login":"ishkawa","id":966856,"avatar_url":"https://avatars.githubusercontent.com/u/966856?v=3","gravatar_id":"","url":"https://api.github.com/users/ishkawa","html_url":"https://github.com/ishkawa","followers_url":"https://api.github.com/users/ishkawa/followers","following_url":"https://api.github.com/users/ishkawa/following{/other_user}","gists_url":"https://api.github.com/users/ishkawa/gists{/gist_id}","starred_url":"https://api.github.com/users/ishkawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishkawa/subscriptions","organizations_url":"https://api.github.com/users/ishkawa/orgs","repos_url":"https://api.github.com/users/ishkawa/repos","events_url":"https://api.github.com/users/ishkawa/events{/privacy}","received_events_url":"https://api.github.com/users/ishkawa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ishkawa/Result","description":"Swift type modelling the success/failure of arbitrary operations.","fork":true,"url":"https://api.github.com/repos/ishkawa/Result","forks_url":"https://api.github.com/repos/ishkawa/Result/forks","keys_url":"https://api.github.com/repos/ishkawa/Result/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ishkawa/Result/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ishkawa/Result/teams","hooks_url":"https://api.github.com/repos/ishkawa/Result/hooks","issue_events_url":"https://api.github.com/repos/ishkawa/Result/issues/events{/number}","events_url":"https://api.github.com/repos/ishkawa/Result/events","assignees_url":"https://api.github.com/repos/ishkawa/Result/assignees{/user}","branches_url":"https://api.github.com/repos/ishkawa/Result/branches{/branch}","tags_url":"https://api.github.com/repos/ishkawa/Result/tags","blobs_url":"https://api.github.com/repos/ishkawa/Result/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ishkawa/Result/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ishkawa/Result/git/refs{/sha}","trees_url":"https://api.github.com/repos/ishkawa/Result/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ishkawa/Result/statuses/{sha}","languages_url":"https://api.github.com/repos/ishkawa/Result/languages","stargazers_url":"https://api.github.com/repos/ishkawa/Result/stargazers","contributors_url":"https://api.github.com/repos/ishkawa/Result/contributors","subscribers_url":"https://api.github.com/repos/ishkawa/Result/subscribers","subscription_url":"https://api.github.com/repos/ishkawa/Result/subscription","commits_url":"https://api.github.com/repos/ishkawa/Result/commits{/sha}","git_commits_url":"https://api.github.com/repos/ishkawa/Result/git/commits{/sha}","comments_url":"https://api.github.com/repos/ishkawa/Result/comments{/number}","issue_comment_url":"https://api.github.com/repos/ishkawa/Result/issues/comments{/number}","contents_url":"https://api.github.com/repos/ishkawa/Result/contents/{+path}","compare_url":"https://api.github.com/repos/ishkawa/Result/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ishkawa/Result/merges","archive_url":"https://api.github.com/repos/ishkawa/Result/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ishkawa/Result/downloads","issues_url":"https://api.github.com/repos/ishkawa/Result/issues{/number}","pulls_url":"https://api.github.com/repos/ishkawa/Result/pulls{/number}","milestones_url":"https://api.github.com/repos/ishkawa/Result/milestones{/number}","notifications_url":"https://api.github.com/repos/ishkawa/Result/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ishkawa/Result/labels{/name}","releases_url":"https://api.github.com/repos/ishkawa/Result/releases{/id}","created_at":"2015-06-11T04:07:42Z","updated_at":"2015-06-11T04:07:43Z","pushed_at":"2015-06-11T05:23:25Z","git_url":"git://github.com/ishkawa/Result.git","ssh_url":"git@github.com:ishkawa/Result.git","clone_url":"https://github.com/ishkawa/Result.git","svn_url":"https://github.com/ishkawa/Result","homepage":null,"size":713,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"antitypical:master","ref":"master","sha":"93f03e3f6dbd9e684d99314822462c9333cd4019","user":{"login":"antitypical","id":6732310,"avatar_url":"https://avatars.githubusercontent.com/u/6732310?v=3","gravatar_id":"","url":"https://api.github.com/users/antitypical","html_url":"https://github.com/antitypical","followers_url":"https://api.github.com/users/antitypical/followers","following_url":"https://api.github.com/users/antitypical/following{/other_user}","gists_url":"https://api.github.com/users/antitypical/gists{/gist_id}","starred_url":"https://api.github.com/users/antitypical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antitypical/subscriptions","organizations_url":"https://api.github.com/users/antitypical/orgs","repos_url":"https://api.github.com/users/antitypical/repos","events_url":"https://api.github.com/users/antitypical/events{/privacy}","received_events_url":"https://api.github.com/users/antitypical/received_events","type":"Organization","site_admin":false},"repo":{"id":31188467,"name":"Result","full_name":"antitypical/Result","owner":{"login":"antitypical","id":6732310,"avatar_url":"https://avatars.githubusercontent.com/u/6732310?v=3","gravatar_id":"","url":"https://api.github.com/users/antitypical","html_url":"https://github.com/antitypical","followers_url":"https://api.github.com/users/antitypical/followers","following_url":"https://api.github.com/users/antitypical/following{/other_user}","gists_url":"https://api.github.com/users/antitypical/gists{/gist_id}","starred_url":"https://api.github.com/users/antitypical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antitypical/subscriptions","organizations_url":"https://api.github.com/users/antitypical/orgs","repos_url":"https://api.github.com/users/antitypical/repos","events_url":"https://api.github.com/users/antitypical/events{/privacy}","received_events_url":"https://api.github.com/users/antitypical/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/antitypical/Result","description":"Swift type modelling the success/failure of arbitrary operations.","fork":false,"url":"https://api.github.com/repos/antitypical/Result","forks_url":"https://api.github.com/repos/antitypical/Result/forks","keys_url":"https://api.github.com/repos/antitypical/Result/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antitypical/Result/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antitypical/Result/teams","hooks_url":"https://api.github.com/repos/antitypical/Result/hooks","issue_events_url":"https://api.github.com/repos/antitypical/Result/issues/events{/number}","events_url":"https://api.github.com/repos/antitypical/Result/events","assignees_url":"https://api.github.com/repos/antitypical/Result/assignees{/user}","branches_url":"https://api.github.com/repos/antitypical/Result/branches{/branch}","tags_url":"https://api.github.com/repos/antitypical/Result/tags","blobs_url":"https://api.github.com/repos/antitypical/Result/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antitypical/Result/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antitypical/Result/git/refs{/sha}","trees_url":"https://api.github.com/repos/antitypical/Result/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antitypical/Result/statuses/{sha}","languages_url":"https://api.github.com/repos/antitypical/Result/languages","stargazers_url":"https://api.github.com/repos/antitypical/Result/stargazers","contributors_url":"https://api.github.com/repos/antitypical/Result/contributors","subscribers_url":"https://api.github.com/repos/antitypical/Result/subscribers","subscription_url":"https://api.github.com/repos/antitypical/Result/subscription","commits_url":"https://api.github.com/repos/antitypical/Result/commits{/sha}","git_commits_url":"https://api.github.com/repos/antitypical/Result/git/commits{/sha}","comments_url":"https://api.github.com/repos/antitypical/Result/comments{/number}","issue_comment_url":"https://api.github.com/repos/antitypical/Result/issues/comments{/number}","contents_url":"https://api.github.com/repos/antitypical/Result/contents/{+path}","compare_url":"https://api.github.com/repos/antitypical/Result/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antitypical/Result/merges","archive_url":"https://api.github.com/repos/antitypical/Result/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antitypical/Result/downloads","issues_url":"https://api.github.com/repos/antitypical/Result/issues{/number}","pulls_url":"https://api.github.com/repos/antitypical/Result/pulls{/number}","milestones_url":"https://api.github.com/repos/antitypical/Result/milestones{/number}","notifications_url":"https://api.github.com/repos/antitypical/Result/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antitypical/Result/labels{/name}","releases_url":"https://api.github.com/repos/antitypical/Result/releases{/id}","created_at":"2015-02-23T00:41:05Z","updated_at":"2015-06-10T23:05:11Z","pushed_at":"2015-06-10T19:57:10Z","git_url":"git://github.com/antitypical/Result.git","ssh_url":"git@github.com:antitypical/Result.git","clone_url":"https://github.com/antitypical/Result.git","svn_url":"https://github.com/antitypical/Result","homepage":null,"size":713,"stargazers_count":370,"watchers_count":370,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":7,"forks":28,"open_issues":7,"watchers":370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/antitypical/Result/pulls/60"},"html":{"href":"https://github.com/antitypical/Result/pull/60"},"issue":{"href":"https://api.github.com/repos/antitypical/Result/issues/60"},"comments":{"href":"https://api.github.com/repos/antitypical/Result/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/antitypical/Result/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/antitypical/Result/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/antitypical/Result/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/antitypical/Result/statuses/9fdc03197ddec6d82c90e72c924972dd0cd9bfd6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":0,"changed_files":1}}