{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/comments/66298205","id":66298205,"diff_hunk":"@@ -30,29 +30,41 @@ Array.sumBy projection array\n ```\n \n #### Parameters\n-*projection*\n-Type: **'T -&gt; ^U**\n-\n+*projection* Type: **'T -&gt; ^U**\n \n The function to transform the array elements into the type to be summed.\n \n-\n-*array*\n-Type: **'T**[[]](https://msdn.microsoft.com/library/def20292-9aae-4596-9275-b94e594f8493)\n+*array* Type: **'T**[[]](https://msdn.microsoft.com/library/def20292-9aae-4596-9275-b94e594f8493)\n \n \n The input array.\n \n \n+## Return Value\n+The sum of the results of applying the projection function to each element of the array.\n+\n+\n+## Exceptions\n+May throw an [OverflowException](https://msdn.microsoft.com/library/system.overflowexception.aspx) due to arithmetic overflows.\n+\n \n-**The resulting sum.**\n ## Remarks\n+The results are summed using the **[checked + operator](https://msdn.microsoft.com/visualfsharpdocs/conceptual/checked.[-p-][%5Et1%2c%5Et2%2c%5Et3]-function-[fsharp])** and **Zero** property associated with the summed type.\n+\n This function is named **SumBy** in compiled assemblies. If you are accessing the function from a language other than F#, or through reflection, use this name.\n \n-**The following code shows how to use Array.sumBy.**\n+\n+## Example\n+\n [!code-fsharp[Main](snippets/fsarrays/snippet67.fs)]\n+\n **Output**\n-**385**\n+","path":"docs/conceptual/array.sumby['t,^u]-function-[fsharp].md","position":60,"original_position":60,"commit_id":"0020aef5cfe15357e7c06554da477da7c5aaaf85","original_commit_id":"0020aef5cfe15357e7c06554da477da7c5aaaf85","user":{"login":"dend","id":1389609,"avatar_url":"https://avatars.githubusercontent.com/u/1389609?v=3","gravatar_id":"","url":"https://api.github.com/users/dend","html_url":"https://github.com/dend","followers_url":"https://api.github.com/users/dend/followers","following_url":"https://api.github.com/users/dend/following{/other_user}","gists_url":"https://api.github.com/users/dend/gists{/gist_id}","starred_url":"https://api.github.com/users/dend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dend/subscriptions","organizations_url":"https://api.github.com/users/dend/orgs","repos_url":"https://api.github.com/users/dend/repos","events_url":"https://api.github.com/users/dend/events{/privacy}","received_events_url":"https://api.github.com/users/dend/received_events","type":"User","site_admin":false},"body":"Yep, also good call.","created_at":"2016-06-08T17:16:36Z","updated_at":"2016-06-08T17:16:36Z","html_url":"https://github.com/Microsoft/visualfsharpdocs/pull/172#discussion_r66298205","pull_request_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/comments/66298205"},"html":{"href":"https://github.com/Microsoft/visualfsharpdocs/pull/172#discussion_r66298205"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172","id":73022413,"html_url":"https://github.com/Microsoft/visualfsharpdocs/pull/172","diff_url":"https://github.com/Microsoft/visualfsharpdocs/pull/172.diff","patch_url":"https://github.com/Microsoft/visualfsharpdocs/pull/172.patch","issue_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues/172","number":172,"state":"open","locked":false,"title":"Fix&normalize Array.sum, Array.sumBy, List.sum, List.sumBy, Seq.sum, and Seq.sumBy","user":{"login":"Vandroiy","id":1465353,"avatar_url":"https://avatars.githubusercontent.com/u/1465353?v=3","gravatar_id":"","url":"https://api.github.com/users/Vandroiy","html_url":"https://github.com/Vandroiy","followers_url":"https://api.github.com/users/Vandroiy/followers","following_url":"https://api.github.com/users/Vandroiy/following{/other_user}","gists_url":"https://api.github.com/users/Vandroiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Vandroiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vandroiy/subscriptions","organizations_url":"https://api.github.com/users/Vandroiy/orgs","repos_url":"https://api.github.com/users/Vandroiy/repos","events_url":"https://api.github.com/users/Vandroiy/events{/privacy}","received_events_url":"https://api.github.com/users/Vandroiy/received_events","type":"User","site_admin":false},"body":" - Proper result description and format\r\n - OverflowException documented on all\r\n - Usage of `Zero` documented on all\r\n - More normalized wording\r\n - Example formatting fixed where applicable\r\n - Minor formatting edits, including whitespace/line-breaks in Markdown input","created_at":"2016-06-08T10:29:32Z","updated_at":"2016-06-08T17:16:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eeeb47dde03160902b0d0752b8535d14f502a696","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172/commits","review_comments_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172/comments","review_comment_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues/172/comments","statuses_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/statuses/0020aef5cfe15357e7c06554da477da7c5aaaf85","head":{"label":"Vandroiy:master","ref":"master","sha":"0020aef5cfe15357e7c06554da477da7c5aaaf85","user":{"login":"Vandroiy","id":1465353,"avatar_url":"https://avatars.githubusercontent.com/u/1465353?v=3","gravatar_id":"","url":"https://api.github.com/users/Vandroiy","html_url":"https://github.com/Vandroiy","followers_url":"https://api.github.com/users/Vandroiy/followers","following_url":"https://api.github.com/users/Vandroiy/following{/other_user}","gists_url":"https://api.github.com/users/Vandroiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Vandroiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vandroiy/subscriptions","organizations_url":"https://api.github.com/users/Vandroiy/orgs","repos_url":"https://api.github.com/users/Vandroiy/repos","events_url":"https://api.github.com/users/Vandroiy/events{/privacy}","received_events_url":"https://api.github.com/users/Vandroiy/received_events","type":"User","site_admin":false},"repo":{"id":59743553,"name":"visualfsharpdocs","full_name":"Vandroiy/visualfsharpdocs","owner":{"login":"Vandroiy","id":1465353,"avatar_url":"https://avatars.githubusercontent.com/u/1465353?v=3","gravatar_id":"","url":"https://api.github.com/users/Vandroiy","html_url":"https://github.com/Vandroiy","followers_url":"https://api.github.com/users/Vandroiy/followers","following_url":"https://api.github.com/users/Vandroiy/following{/other_user}","gists_url":"https://api.github.com/users/Vandroiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Vandroiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vandroiy/subscriptions","organizations_url":"https://api.github.com/users/Vandroiy/orgs","repos_url":"https://api.github.com/users/Vandroiy/repos","events_url":"https://api.github.com/users/Vandroiy/events{/privacy}","received_events_url":"https://api.github.com/users/Vandroiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vandroiy/visualfsharpdocs","description":"","fork":true,"url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs","forks_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/forks","keys_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/teams","hooks_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/hooks","issue_events_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/issues/events{/number}","events_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/events","assignees_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/assignees{/user}","branches_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/branches{/branch}","tags_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/tags","blobs_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/statuses/{sha}","languages_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/languages","stargazers_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/stargazers","contributors_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/contributors","subscribers_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/subscribers","subscription_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/subscription","commits_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/contents/{+path}","compare_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/merges","archive_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/downloads","issues_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/issues{/number}","pulls_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/pulls{/number}","milestones_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/milestones{/number}","notifications_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/labels{/name}","releases_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/releases{/id}","deployments_url":"https://api.github.com/repos/Vandroiy/visualfsharpdocs/deployments","created_at":"2016-05-26T11:02:14Z","updated_at":"2016-05-26T11:02:16Z","pushed_at":"2016-06-08T10:17:02Z","git_url":"git://github.com/Vandroiy/visualfsharpdocs.git","ssh_url":"git@github.com:Vandroiy/visualfsharpdocs.git","clone_url":"https://github.com/Vandroiy/visualfsharpdocs.git","svn_url":"https://github.com/Vandroiy/visualfsharpdocs","homepage":null,"size":47158,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","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":"Microsoft:master","ref":"master","sha":"056eb82b708887d05a011d444584aa57df85c3e0","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":44340752,"name":"visualfsharpdocs","full_name":"Microsoft/visualfsharpdocs","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/visualfsharpdocs","description":"Documentation for Visual F#","fork":false,"url":"https://api.github.com/repos/Microsoft/visualfsharpdocs","forks_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/forks","keys_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/teams","hooks_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/events","assignees_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/tags","blobs_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/languages","stargazers_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/subscription","commits_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/merges","archive_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/downloads","issues_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/visualfsharpdocs/deployments","created_at":"2015-10-15T19:36:38Z","updated_at":"2016-06-08T15:31:05Z","pushed_at":"2016-06-08T10:29:33Z","git_url":"git://github.com/Microsoft/visualfsharpdocs.git","ssh_url":"git@github.com:Microsoft/visualfsharpdocs.git","clone_url":"https://github.com/Microsoft/visualfsharpdocs.git","svn_url":"https://github.com/Microsoft/visualfsharpdocs","homepage":"https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/visual-fsharp","size":47159,"stargazers_count":67,"watchers_count":67,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":21,"forks":53,"open_issues":21,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172"},"html":{"href":"https://github.com/Microsoft/visualfsharpdocs/pull/172"},"issue":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues/172"},"comments":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/visualfsharpdocs/statuses/0020aef5cfe15357e7c06554da477da7c5aaaf85"}}}}
{"actor":{"display_login":"dend"}}