{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/purescript/purescript-arrays/pulls/28","id":30349388,"html_url":"https://github.com/purescript/purescript-arrays/pull/28","diff_url":"https://github.com/purescript/purescript-arrays/pull/28.diff","patch_url":"https://github.com/purescript/purescript-arrays/pull/28.patch","issue_url":"https://api.github.com/repos/purescript/purescript-arrays/issues/28","number":28,"state":"open","locked":false,"title":"make `head` and `last` O(1), not O(n).","user":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"body":"refs #13.\r\n\r\nAvoid pattern matching for `head` and `last` to make them O(1).\r\n\r\nNote that this changes behaviour slightly - `Data.Array.Unsafe.head ([] :: [Unit]) == unit`, because it now uses `unsafeIndex`. Previously it would throw \"Failed pattern match\".","created_at":"2015-03-03T06:20:04Z","updated_at":"2015-03-03T06:20:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/purescript/purescript-arrays/pulls/28/commits","review_comments_url":"https://api.github.com/repos/purescript/purescript-arrays/pulls/28/comments","review_comment_url":"https://api.github.com/repos/purescript/purescript-arrays/pulls/comments{/number}","comments_url":"https://api.github.com/repos/purescript/purescript-arrays/issues/28/comments","statuses_url":"https://api.github.com/repos/purescript/purescript-arrays/statuses/99fed116e638d3bd3525efe4e634559d916f2e9f","head":{"label":"hdgarrood:better-complexities","ref":"better-complexities","sha":"99fed116e638d3bd3525efe4e634559d916f2e9f","user":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"repo":{"id":31582146,"name":"purescript-arrays","full_name":"hdgarrood/purescript-arrays","owner":{"login":"hdgarrood","id":1270186,"avatar_url":"https://avatars.githubusercontent.com/u/1270186?v=3","gravatar_id":"","url":"https://api.github.com/users/hdgarrood","html_url":"https://github.com/hdgarrood","followers_url":"https://api.github.com/users/hdgarrood/followers","following_url":"https://api.github.com/users/hdgarrood/following{/other_user}","gists_url":"https://api.github.com/users/hdgarrood/gists{/gist_id}","starred_url":"https://api.github.com/users/hdgarrood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdgarrood/subscriptions","organizations_url":"https://api.github.com/users/hdgarrood/orgs","repos_url":"https://api.github.com/users/hdgarrood/repos","events_url":"https://api.github.com/users/hdgarrood/events{/privacy}","received_events_url":"https://api.github.com/users/hdgarrood/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hdgarrood/purescript-arrays","description":"Array utility functions","fork":true,"url":"https://api.github.com/repos/hdgarrood/purescript-arrays","forks_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/forks","keys_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/teams","hooks_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/hooks","issue_events_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/issues/events{/number}","events_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/events","assignees_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/assignees{/user}","branches_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/branches{/branch}","tags_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/tags","blobs_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/git/refs{/sha}","trees_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/statuses/{sha}","languages_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/languages","stargazers_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/stargazers","contributors_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/contributors","subscribers_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/subscribers","subscription_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/subscription","commits_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/commits{/sha}","git_commits_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/git/commits{/sha}","comments_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/comments{/number}","issue_comment_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/issues/comments{/number}","contents_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/contents/{+path}","compare_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/merges","archive_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/downloads","issues_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/issues{/number}","pulls_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/pulls{/number}","milestones_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/milestones{/number}","notifications_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/labels{/name}","releases_url":"https://api.github.com/repos/hdgarrood/purescript-arrays/releases{/id}","created_at":"2015-03-03T06:01:10Z","updated_at":"2015-03-03T06:01:10Z","pushed_at":"2015-03-03T06:09:43Z","git_url":"git://github.com/hdgarrood/purescript-arrays.git","ssh_url":"git@github.com:hdgarrood/purescript-arrays.git","clone_url":"https://github.com/hdgarrood/purescript-arrays.git","svn_url":"https://github.com/hdgarrood/purescript-arrays","homepage":null,"size":123,"stargazers_count":0,"watchers_count":0,"language":"PureScript","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":"purescript:master","ref":"master","sha":"df6edb7e2ab4a7a57a18de8891a0c5d3dad71704","user":{"login":"purescript","id":6556677,"avatar_url":"https://avatars.githubusercontent.com/u/6556677?v=3","gravatar_id":"","url":"https://api.github.com/users/purescript","html_url":"https://github.com/purescript","followers_url":"https://api.github.com/users/purescript/followers","following_url":"https://api.github.com/users/purescript/following{/other_user}","gists_url":"https://api.github.com/users/purescript/gists{/gist_id}","starred_url":"https://api.github.com/users/purescript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purescript/subscriptions","organizations_url":"https://api.github.com/users/purescript/orgs","repos_url":"https://api.github.com/users/purescript/repos","events_url":"https://api.github.com/users/purescript/events{/privacy}","received_events_url":"https://api.github.com/users/purescript/received_events","type":"Organization","site_admin":false},"repo":{"id":17880224,"name":"purescript-arrays","full_name":"purescript/purescript-arrays","owner":{"login":"purescript","id":6556677,"avatar_url":"https://avatars.githubusercontent.com/u/6556677?v=3","gravatar_id":"","url":"https://api.github.com/users/purescript","html_url":"https://github.com/purescript","followers_url":"https://api.github.com/users/purescript/followers","following_url":"https://api.github.com/users/purescript/following{/other_user}","gists_url":"https://api.github.com/users/purescript/gists{/gist_id}","starred_url":"https://api.github.com/users/purescript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purescript/subscriptions","organizations_url":"https://api.github.com/users/purescript/orgs","repos_url":"https://api.github.com/users/purescript/repos","events_url":"https://api.github.com/users/purescript/events{/privacy}","received_events_url":"https://api.github.com/users/purescript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/purescript/purescript-arrays","description":"Array utility functions","fork":false,"url":"https://api.github.com/repos/purescript/purescript-arrays","forks_url":"https://api.github.com/repos/purescript/purescript-arrays/forks","keys_url":"https://api.github.com/repos/purescript/purescript-arrays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purescript/purescript-arrays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purescript/purescript-arrays/teams","hooks_url":"https://api.github.com/repos/purescript/purescript-arrays/hooks","issue_events_url":"https://api.github.com/repos/purescript/purescript-arrays/issues/events{/number}","events_url":"https://api.github.com/repos/purescript/purescript-arrays/events","assignees_url":"https://api.github.com/repos/purescript/purescript-arrays/assignees{/user}","branches_url":"https://api.github.com/repos/purescript/purescript-arrays/branches{/branch}","tags_url":"https://api.github.com/repos/purescript/purescript-arrays/tags","blobs_url":"https://api.github.com/repos/purescript/purescript-arrays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purescript/purescript-arrays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purescript/purescript-arrays/git/refs{/sha}","trees_url":"https://api.github.com/repos/purescript/purescript-arrays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purescript/purescript-arrays/statuses/{sha}","languages_url":"https://api.github.com/repos/purescript/purescript-arrays/languages","stargazers_url":"https://api.github.com/repos/purescript/purescript-arrays/stargazers","contributors_url":"https://api.github.com/repos/purescript/purescript-arrays/contributors","subscribers_url":"https://api.github.com/repos/purescript/purescript-arrays/subscribers","subscription_url":"https://api.github.com/repos/purescript/purescript-arrays/subscription","commits_url":"https://api.github.com/repos/purescript/purescript-arrays/commits{/sha}","git_commits_url":"https://api.github.com/repos/purescript/purescript-arrays/git/commits{/sha}","comments_url":"https://api.github.com/repos/purescript/purescript-arrays/comments{/number}","issue_comment_url":"https://api.github.com/repos/purescript/purescript-arrays/issues/comments{/number}","contents_url":"https://api.github.com/repos/purescript/purescript-arrays/contents/{+path}","compare_url":"https://api.github.com/repos/purescript/purescript-arrays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purescript/purescript-arrays/merges","archive_url":"https://api.github.com/repos/purescript/purescript-arrays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purescript/purescript-arrays/downloads","issues_url":"https://api.github.com/repos/purescript/purescript-arrays/issues{/number}","pulls_url":"https://api.github.com/repos/purescript/purescript-arrays/pulls{/number}","milestones_url":"https://api.github.com/repos/purescript/purescript-arrays/milestones{/number}","notifications_url":"https://api.github.com/repos/purescript/purescript-arrays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purescript/purescript-arrays/labels{/name}","releases_url":"https://api.github.com/repos/purescript/purescript-arrays/releases{/id}","created_at":"2014-03-18T20:07:15Z","updated_at":"2015-02-18T18:35:49Z","pushed_at":"2015-02-18T18:36:19Z","git_url":"git://github.com/purescript/purescript-arrays.git","ssh_url":"git@github.com:purescript/purescript-arrays.git","clone_url":"https://github.com/purescript/purescript-arrays.git","svn_url":"https://github.com/purescript/purescript-arrays","homepage":null,"size":443,"stargazers_count":3,"watchers_count":3,"language":"PureScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":9,"forks":10,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/purescript/purescript-arrays/pulls/28"},"html":{"href":"https://github.com/purescript/purescript-arrays/pull/28"},"issue":{"href":"https://api.github.com/repos/purescript/purescript-arrays/issues/28"},"comments":{"href":"https://api.github.com/repos/purescript/purescript-arrays/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/purescript/purescript-arrays/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/purescript/purescript-arrays/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/purescript/purescript-arrays/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/purescript/purescript-arrays/statuses/99fed116e638d3bd3525efe4e634559d916f2e9f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":416,"deletions":81,"changed_files":3}}