{"action":"created","comment":{"url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/comments/84280000","pull_request_review_id":5064532,"id":84280000,"diff_hunk":"@@ -0,0 +1,241 @@\n+#region License and Terms\n+// MoreLINQ - Extensions to LINQ to Objects\n+// Copyright (c) 2016 Atif Aziz. All rights reserved.\n+// \n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+// \n+//     http://www.apache.org/licenses/LICENSE-2.0\n+// \n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+#endregion\n+\n+namespace MoreLinq\n+{\n+    using System;\n+    using System.Collections.Generic;\n+    using System.Linq;\n+\n+    static partial class MoreEnumerable\n+    {\n+        /// <summary>\n+        /// Creates an array from an <see cref=\"IEnumerable{T}\"/> where a\n+        /// function is used to determine the index at which an element will\n+        /// be placed in the array.\n+        /// </summary>\n+        /// <param name=\"source\">The source sequence for the array.</param>\n+        /// <param name=\"indexSelector\">\n+        /// A function that maps an element to its index.</param>\n+        /// <typeparam name=\"T\">\n+        /// The type of the element in<paramref name=\"source\"/>.</typeparam>\n+        /// <returns>\n+        /// An array that contains the elements from the input sequence. The\n+        /// size of the array will be as large as the highest index returned\n+        /// by the <paramref name=\"indexSelector\"/> plus 1.\n+        /// </returns>\n+        /// <remarks>\n+        /// This method forces immediate query evaluation. It should not be\n+        /// used on infinite sequences. If more than one element maps to the\n+        /// same index then the latter element overwrites the former in the\n+        /// resulting array.","path":"MoreLinq/ToArrayByIndex.cs","position":45,"original_position":45,"commit_id":"a0112572c076e9d218e04f55b611d58008bc49ad","original_commit_id":"a0112572c076e9d218e04f55b611d58008bc49ad","user":{"login":"fsateler","id":1322013,"avatar_url":"https://avatars.githubusercontent.com/u/1322013?v=3","gravatar_id":"","url":"https://api.github.com/users/fsateler","html_url":"https://github.com/fsateler","followers_url":"https://api.github.com/users/fsateler/followers","following_url":"https://api.github.com/users/fsateler/following{/other_user}","gists_url":"https://api.github.com/users/fsateler/gists{/gist_id}","starred_url":"https://api.github.com/users/fsateler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsateler/subscriptions","organizations_url":"https://api.github.com/users/fsateler/orgs","repos_url":"https://api.github.com/users/fsateler/repos","events_url":"https://api.github.com/users/fsateler/events{/privacy}","received_events_url":"https://api.github.com/users/fsateler/received_events","type":"User","site_admin":false},"body":"I find this wording a bit difficult to follow as a non-native speaker. Maybe something like the following is a bit clearer:\r\n\r\n> If more than one element maps to the same index then the last element overwrites all previous elements in the resulting array.\r\n","created_at":"2016-10-20T13:20:54Z","updated_at":"2016-10-20T13:37:44Z","html_url":"https://github.com/morelinq/MoreLINQ/pull/204#discussion_r84280000","pull_request_url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204","_links":{"self":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/comments/84280000"},"html":{"href":"https://github.com/morelinq/MoreLINQ/pull/204#discussion_r84280000"},"pull_request":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204"}}},"pull_request":{"url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204","id":90153826,"html_url":"https://github.com/morelinq/MoreLINQ/pull/204","diff_url":"https://github.com/morelinq/MoreLINQ/pull/204.diff","patch_url":"https://github.com/morelinq/MoreLINQ/pull/204.patch","issue_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues/204","number":204,"state":"open","locked":false,"title":"ToArrayByIndex creates an array by mapping each element to an index","user":{"login":"atifaziz","id":20511,"avatar_url":"https://avatars.githubusercontent.com/u/20511?v=3","gravatar_id":"","url":"https://api.github.com/users/atifaziz","html_url":"https://github.com/atifaziz","followers_url":"https://api.github.com/users/atifaziz/followers","following_url":"https://api.github.com/users/atifaziz/following{/other_user}","gists_url":"https://api.github.com/users/atifaziz/gists{/gist_id}","starred_url":"https://api.github.com/users/atifaziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atifaziz/subscriptions","organizations_url":"https://api.github.com/users/atifaziz/orgs","repos_url":"https://api.github.com/users/atifaziz/repos","events_url":"https://api.github.com/users/atifaziz/events{/privacy}","received_events_url":"https://api.github.com/users/atifaziz/received_events","type":"User","site_admin":false},"body":"PR for #202. Tests pending.","created_at":"2016-10-20T08:26:37Z","updated_at":"2016-10-20T13:37:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"887aa11836dc433bbb6d6f2d2ffc47acb1e3072a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204/commits","review_comments_url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204/comments","review_comment_url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/comments{/number}","comments_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues/204/comments","statuses_url":"https://api.github.com/repos/morelinq/MoreLINQ/statuses/a0112572c076e9d218e04f55b611d58008bc49ad","head":{"label":"morelinq:ToArrayByIndex","ref":"ToArrayByIndex","sha":"a0112572c076e9d218e04f55b611d58008bc49ad","user":{"login":"morelinq","id":13901851,"avatar_url":"https://avatars.githubusercontent.com/u/13901851?v=3","gravatar_id":"","url":"https://api.github.com/users/morelinq","html_url":"https://github.com/morelinq","followers_url":"https://api.github.com/users/morelinq/followers","following_url":"https://api.github.com/users/morelinq/following{/other_user}","gists_url":"https://api.github.com/users/morelinq/gists{/gist_id}","starred_url":"https://api.github.com/users/morelinq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morelinq/subscriptions","organizations_url":"https://api.github.com/users/morelinq/orgs","repos_url":"https://api.github.com/users/morelinq/repos","events_url":"https://api.github.com/users/morelinq/events{/privacy}","received_events_url":"https://api.github.com/users/morelinq/received_events","type":"Organization","site_admin":false},"repo":{"id":41150635,"name":"MoreLINQ","full_name":"morelinq/MoreLINQ","owner":{"login":"morelinq","id":13901851,"avatar_url":"https://avatars.githubusercontent.com/u/13901851?v=3","gravatar_id":"","url":"https://api.github.com/users/morelinq","html_url":"https://github.com/morelinq","followers_url":"https://api.github.com/users/morelinq/followers","following_url":"https://api.github.com/users/morelinq/following{/other_user}","gists_url":"https://api.github.com/users/morelinq/gists{/gist_id}","starred_url":"https://api.github.com/users/morelinq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morelinq/subscriptions","organizations_url":"https://api.github.com/users/morelinq/orgs","repos_url":"https://api.github.com/users/morelinq/repos","events_url":"https://api.github.com/users/morelinq/events{/privacy}","received_events_url":"https://api.github.com/users/morelinq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/morelinq/MoreLINQ","description":"Extensions to LINQ to Objects","fork":false,"url":"https://api.github.com/repos/morelinq/MoreLINQ","forks_url":"https://api.github.com/repos/morelinq/MoreLINQ/forks","keys_url":"https://api.github.com/repos/morelinq/MoreLINQ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/morelinq/MoreLINQ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/morelinq/MoreLINQ/teams","hooks_url":"https://api.github.com/repos/morelinq/MoreLINQ/hooks","issue_events_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues/events{/number}","events_url":"https://api.github.com/repos/morelinq/MoreLINQ/events","assignees_url":"https://api.github.com/repos/morelinq/MoreLINQ/assignees{/user}","branches_url":"https://api.github.com/repos/morelinq/MoreLINQ/branches{/branch}","tags_url":"https://api.github.com/repos/morelinq/MoreLINQ/tags","blobs_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/refs{/sha}","trees_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/morelinq/MoreLINQ/statuses/{sha}","languages_url":"https://api.github.com/repos/morelinq/MoreLINQ/languages","stargazers_url":"https://api.github.com/repos/morelinq/MoreLINQ/stargazers","contributors_url":"https://api.github.com/repos/morelinq/MoreLINQ/contributors","subscribers_url":"https://api.github.com/repos/morelinq/MoreLINQ/subscribers","subscription_url":"https://api.github.com/repos/morelinq/MoreLINQ/subscription","commits_url":"https://api.github.com/repos/morelinq/MoreLINQ/commits{/sha}","git_commits_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/commits{/sha}","comments_url":"https://api.github.com/repos/morelinq/MoreLINQ/comments{/number}","issue_comment_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues/comments{/number}","contents_url":"https://api.github.com/repos/morelinq/MoreLINQ/contents/{+path}","compare_url":"https://api.github.com/repos/morelinq/MoreLINQ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/morelinq/MoreLINQ/merges","archive_url":"https://api.github.com/repos/morelinq/MoreLINQ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/morelinq/MoreLINQ/downloads","issues_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues{/number}","pulls_url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls{/number}","milestones_url":"https://api.github.com/repos/morelinq/MoreLINQ/milestones{/number}","notifications_url":"https://api.github.com/repos/morelinq/MoreLINQ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/morelinq/MoreLINQ/labels{/name}","releases_url":"https://api.github.com/repos/morelinq/MoreLINQ/releases{/id}","deployments_url":"https://api.github.com/repos/morelinq/MoreLINQ/deployments","created_at":"2015-08-21T10:39:10Z","updated_at":"2016-10-19T06:36:25Z","pushed_at":"2016-10-20T08:26:37Z","git_url":"git://github.com/morelinq/MoreLINQ.git","ssh_url":"git@github.com:morelinq/MoreLINQ.git","clone_url":"https://github.com/morelinq/MoreLINQ.git","svn_url":"https://github.com/morelinq/MoreLINQ","homepage":"https://morelinq.github.io/","size":4368,"stargazers_count":314,"watchers_count":314,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":37,"forks":58,"open_issues":37,"watchers":314,"default_branch":"master"}},"base":{"label":"morelinq:master","ref":"master","sha":"21cabccba1cfcfb5d6a21abe05ebafa22a85fa6c","user":{"login":"morelinq","id":13901851,"avatar_url":"https://avatars.githubusercontent.com/u/13901851?v=3","gravatar_id":"","url":"https://api.github.com/users/morelinq","html_url":"https://github.com/morelinq","followers_url":"https://api.github.com/users/morelinq/followers","following_url":"https://api.github.com/users/morelinq/following{/other_user}","gists_url":"https://api.github.com/users/morelinq/gists{/gist_id}","starred_url":"https://api.github.com/users/morelinq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morelinq/subscriptions","organizations_url":"https://api.github.com/users/morelinq/orgs","repos_url":"https://api.github.com/users/morelinq/repos","events_url":"https://api.github.com/users/morelinq/events{/privacy}","received_events_url":"https://api.github.com/users/morelinq/received_events","type":"Organization","site_admin":false},"repo":{"id":41150635,"name":"MoreLINQ","full_name":"morelinq/MoreLINQ","owner":{"login":"morelinq","id":13901851,"avatar_url":"https://avatars.githubusercontent.com/u/13901851?v=3","gravatar_id":"","url":"https://api.github.com/users/morelinq","html_url":"https://github.com/morelinq","followers_url":"https://api.github.com/users/morelinq/followers","following_url":"https://api.github.com/users/morelinq/following{/other_user}","gists_url":"https://api.github.com/users/morelinq/gists{/gist_id}","starred_url":"https://api.github.com/users/morelinq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morelinq/subscriptions","organizations_url":"https://api.github.com/users/morelinq/orgs","repos_url":"https://api.github.com/users/morelinq/repos","events_url":"https://api.github.com/users/morelinq/events{/privacy}","received_events_url":"https://api.github.com/users/morelinq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/morelinq/MoreLINQ","description":"Extensions to LINQ to Objects","fork":false,"url":"https://api.github.com/repos/morelinq/MoreLINQ","forks_url":"https://api.github.com/repos/morelinq/MoreLINQ/forks","keys_url":"https://api.github.com/repos/morelinq/MoreLINQ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/morelinq/MoreLINQ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/morelinq/MoreLINQ/teams","hooks_url":"https://api.github.com/repos/morelinq/MoreLINQ/hooks","issue_events_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues/events{/number}","events_url":"https://api.github.com/repos/morelinq/MoreLINQ/events","assignees_url":"https://api.github.com/repos/morelinq/MoreLINQ/assignees{/user}","branches_url":"https://api.github.com/repos/morelinq/MoreLINQ/branches{/branch}","tags_url":"https://api.github.com/repos/morelinq/MoreLINQ/tags","blobs_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/refs{/sha}","trees_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/morelinq/MoreLINQ/statuses/{sha}","languages_url":"https://api.github.com/repos/morelinq/MoreLINQ/languages","stargazers_url":"https://api.github.com/repos/morelinq/MoreLINQ/stargazers","contributors_url":"https://api.github.com/repos/morelinq/MoreLINQ/contributors","subscribers_url":"https://api.github.com/repos/morelinq/MoreLINQ/subscribers","subscription_url":"https://api.github.com/repos/morelinq/MoreLINQ/subscription","commits_url":"https://api.github.com/repos/morelinq/MoreLINQ/commits{/sha}","git_commits_url":"https://api.github.com/repos/morelinq/MoreLINQ/git/commits{/sha}","comments_url":"https://api.github.com/repos/morelinq/MoreLINQ/comments{/number}","issue_comment_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues/comments{/number}","contents_url":"https://api.github.com/repos/morelinq/MoreLINQ/contents/{+path}","compare_url":"https://api.github.com/repos/morelinq/MoreLINQ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/morelinq/MoreLINQ/merges","archive_url":"https://api.github.com/repos/morelinq/MoreLINQ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/morelinq/MoreLINQ/downloads","issues_url":"https://api.github.com/repos/morelinq/MoreLINQ/issues{/number}","pulls_url":"https://api.github.com/repos/morelinq/MoreLINQ/pulls{/number}","milestones_url":"https://api.github.com/repos/morelinq/MoreLINQ/milestones{/number}","notifications_url":"https://api.github.com/repos/morelinq/MoreLINQ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/morelinq/MoreLINQ/labels{/name}","releases_url":"https://api.github.com/repos/morelinq/MoreLINQ/releases{/id}","deployments_url":"https://api.github.com/repos/morelinq/MoreLINQ/deployments","created_at":"2015-08-21T10:39:10Z","updated_at":"2016-10-19T06:36:25Z","pushed_at":"2016-10-20T08:26:37Z","git_url":"git://github.com/morelinq/MoreLINQ.git","ssh_url":"git@github.com:morelinq/MoreLINQ.git","clone_url":"https://github.com/morelinq/MoreLINQ.git","svn_url":"https://github.com/morelinq/MoreLINQ","homepage":"https://morelinq.github.io/","size":4368,"stargazers_count":314,"watchers_count":314,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":37,"forks":58,"open_issues":37,"watchers":314,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204"},"html":{"href":"https://github.com/morelinq/MoreLINQ/pull/204"},"issue":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/issues/204"},"comments":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/issues/204/comments"},"review_comments":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204/comments"},"review_comment":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/pulls/204/commits"},"statuses":{"href":"https://api.github.com/repos/morelinq/MoreLINQ/statuses/a0112572c076e9d218e04f55b611d58008bc49ad"}}}}
{"actor":{"display_login":"fsateler"}}