{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/27790678","id":27790678,"diff_hunk":"@@ -1475,6 +1512,14 @@ unittest //safety, purity, ctfe ...\n     assertCTFEable!dg;\n }\n \n+///\n+unittest\n+{\n+\tassert(split(\"hello world\") == [\"hello\",\"world\"]);\n+\tassert(split(\"192.168.0.1\", \".\") == [\"192\", \"168\", \"0\", \"1\"]);\n+\tassert(split([1, 2, 3, 4, 5, 1, 2, 3, 4, 5], [2, 3]) == [[1], [4, 5, 1], [4, 5]]);","path":"std/array.d","position":67,"original_position":67,"commit_id":"afb1a3d2df9c844be29409d56985467c046130ac","original_commit_id":"afb1a3d2df9c844be29409d56985467c046130ac","user":{"login":"John-Colvin","id":1867189,"avatar_url":"https://avatars.githubusercontent.com/u/1867189?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Colvin","html_url":"https://github.com/John-Colvin","followers_url":"https://api.github.com/users/John-Colvin/followers","following_url":"https://api.github.com/users/John-Colvin/following{/other_user}","gists_url":"https://api.github.com/users/John-Colvin/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Colvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Colvin/subscriptions","organizations_url":"https://api.github.com/users/John-Colvin/orgs","repos_url":"https://api.github.com/users/John-Colvin/repos","events_url":"https://api.github.com/users/John-Colvin/events{/privacy}","received_events_url":"https://api.github.com/users/John-Colvin/received_events","type":"User","site_admin":false},"body":"This line is a bit long. Consider using a temporary variable or just splitting before the `==`","created_at":"2015-04-06T09:44:57Z","updated_at":"2015-04-06T09:44:57Z","html_url":"https://github.com/D-Programming-Language/phobos/pull/3147#discussion_r27790678","pull_request_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/27790678"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3147#discussion_r27790678"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147","id":32639088,"html_url":"https://github.com/D-Programming-Language/phobos/pull/3147","diff_url":"https://github.com/D-Programming-Language/phobos/pull/3147.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/3147.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3147","number":3147,"state":"open","locked":false,"title":"Add a use example to sameHead in array.d","user":{"login":"aceawan","id":1658910,"avatar_url":"https://avatars.githubusercontent.com/u/1658910?v=3","gravatar_id":"","url":"https://api.github.com/users/aceawan","html_url":"https://github.com/aceawan","followers_url":"https://api.github.com/users/aceawan/followers","following_url":"https://api.github.com/users/aceawan/following{/other_user}","gists_url":"https://api.github.com/users/aceawan/gists{/gist_id}","starred_url":"https://api.github.com/users/aceawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceawan/subscriptions","organizations_url":"https://api.github.com/users/aceawan/orgs","repos_url":"https://api.github.com/users/aceawan/repos","events_url":"https://api.github.com/users/aceawan/events{/privacy}","received_events_url":"https://api.github.com/users/aceawan/received_events","type":"User","site_admin":false},"body":"I added a unittest to provide an example of the sameHead function in phobos documentation (not quite sure if it's the correct way to do it)\r\n\r\nSorry for my bad english.","created_at":"2015-04-04T20:23:49Z","updated_at":"2015-04-06T09:44:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a31f63636655b14b31169e1e646819791ae5c8f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3147/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/afb1a3d2df9c844be29409d56985467c046130ac","head":{"label":"aceawan:add_example_sameHead","ref":"add_example_sameHead","sha":"afb1a3d2df9c844be29409d56985467c046130ac","user":{"login":"aceawan","id":1658910,"avatar_url":"https://avatars.githubusercontent.com/u/1658910?v=3","gravatar_id":"","url":"https://api.github.com/users/aceawan","html_url":"https://github.com/aceawan","followers_url":"https://api.github.com/users/aceawan/followers","following_url":"https://api.github.com/users/aceawan/following{/other_user}","gists_url":"https://api.github.com/users/aceawan/gists{/gist_id}","starred_url":"https://api.github.com/users/aceawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceawan/subscriptions","organizations_url":"https://api.github.com/users/aceawan/orgs","repos_url":"https://api.github.com/users/aceawan/repos","events_url":"https://api.github.com/users/aceawan/events{/privacy}","received_events_url":"https://api.github.com/users/aceawan/received_events","type":"User","site_admin":false},"repo":{"id":33417509,"name":"phobos","full_name":"aceawan/phobos","owner":{"login":"aceawan","id":1658910,"avatar_url":"https://avatars.githubusercontent.com/u/1658910?v=3","gravatar_id":"","url":"https://api.github.com/users/aceawan","html_url":"https://github.com/aceawan","followers_url":"https://api.github.com/users/aceawan/followers","following_url":"https://api.github.com/users/aceawan/following{/other_user}","gists_url":"https://api.github.com/users/aceawan/gists{/gist_id}","starred_url":"https://api.github.com/users/aceawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceawan/subscriptions","organizations_url":"https://api.github.com/users/aceawan/orgs","repos_url":"https://api.github.com/users/aceawan/repos","events_url":"https://api.github.com/users/aceawan/events{/privacy}","received_events_url":"https://api.github.com/users/aceawan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aceawan/phobos","description":"The standard library of the D programming language","fork":true,"url":"https://api.github.com/repos/aceawan/phobos","forks_url":"https://api.github.com/repos/aceawan/phobos/forks","keys_url":"https://api.github.com/repos/aceawan/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aceawan/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aceawan/phobos/teams","hooks_url":"https://api.github.com/repos/aceawan/phobos/hooks","issue_events_url":"https://api.github.com/repos/aceawan/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/aceawan/phobos/events","assignees_url":"https://api.github.com/repos/aceawan/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/aceawan/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/aceawan/phobos/tags","blobs_url":"https://api.github.com/repos/aceawan/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aceawan/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aceawan/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/aceawan/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aceawan/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/aceawan/phobos/languages","stargazers_url":"https://api.github.com/repos/aceawan/phobos/stargazers","contributors_url":"https://api.github.com/repos/aceawan/phobos/contributors","subscribers_url":"https://api.github.com/repos/aceawan/phobos/subscribers","subscription_url":"https://api.github.com/repos/aceawan/phobos/subscription","commits_url":"https://api.github.com/repos/aceawan/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/aceawan/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/aceawan/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/aceawan/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/aceawan/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/aceawan/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aceawan/phobos/merges","archive_url":"https://api.github.com/repos/aceawan/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aceawan/phobos/downloads","issues_url":"https://api.github.com/repos/aceawan/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/aceawan/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/aceawan/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/aceawan/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aceawan/phobos/labels{/name}","releases_url":"https://api.github.com/repos/aceawan/phobos/releases{/id}","created_at":"2015-04-04T19:35:22Z","updated_at":"2015-04-04T19:35:28Z","pushed_at":"2015-04-06T09:13:58Z","git_url":"git://github.com/aceawan/phobos.git","ssh_url":"git@github.com:aceawan/phobos.git","clone_url":"https://github.com/aceawan/phobos.git","svn_url":"https://github.com/aceawan/phobos","homepage":"dlang.org/phobos","size":39112,"stargazers_count":0,"watchers_count":0,"language":"D","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":"D-Programming-Language:master","ref":"master","sha":"2788afb0bb6ceb8faf36382c85d8affdf1f345fb","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257084,"name":"phobos","full_name":"D-Programming-Language/phobos","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/phobos","description":"The standard library of the D programming language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/phobos","forks_url":"https://api.github.com/repos/D-Programming-Language/phobos/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/phobos/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/phobos/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/phobos/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/phobos/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/phobos/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/phobos/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/phobos/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/phobos/releases{/id}","created_at":"2011-01-15T07:00:06Z","updated_at":"2015-04-05T01:51:50Z","pushed_at":"2015-04-06T09:13:59Z","git_url":"git://github.com/D-Programming-Language/phobos.git","ssh_url":"git@github.com:D-Programming-Language/phobos.git","clone_url":"https://github.com/D-Programming-Language/phobos.git","svn_url":"https://github.com/D-Programming-Language/phobos","homepage":"dlang.org/phobos","size":72435,"stargazers_count":589,"watchers_count":589,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"open_issues_count":57,"forks":390,"open_issues":57,"watchers":589,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3147"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3147"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3147/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3147/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/afb1a3d2df9c844be29409d56985467c046130ac"}}}}