{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/47456194","id":47456194,"diff_hunk":"@@ -0,0 +1,30 @@\n+var _curry2 = require('./internal/_curry2');\n+var groupBy = require('./groupBy');\n+var head = require('./head');\n+var mapObjIndexed = require('./mapObjIndexed');\n+var prop = require('./prop');\n+\n+\n+/**\n+ * Given a property name, turns a list of objects into an object indexing\n+ * the objects by then given property. Note that uf multiple objects have\n+ * the same value for the indexing property only one object is collected,\n+ * and there's no guarantee as to which one would it be.\n+ *\n+ * @func\n+ * @memberOf R\n+ * @since v0.19.0","path":"src/indexBy.js","position":16,"original_position":16,"commit_id":"c0d7b5d5bf118595dc3c973b5603d7b9a3e6d9ee","original_commit_id":"c0d7b5d5bf118595dc3c973b5603d7b9a3e6d9ee","user":{"login":"scott-christopher","id":8951601,"avatar_url":"https://avatars.githubusercontent.com/u/8951601?v=3","gravatar_id":"","url":"https://api.github.com/users/scott-christopher","html_url":"https://github.com/scott-christopher","followers_url":"https://api.github.com/users/scott-christopher/followers","following_url":"https://api.github.com/users/scott-christopher/following{/other_user}","gists_url":"https://api.github.com/users/scott-christopher/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-christopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-christopher/subscriptions","organizations_url":"https://api.github.com/users/scott-christopher/orgs","repos_url":"https://api.github.com/users/scott-christopher/repos","events_url":"https://api.github.com/users/scott-christopher/events{/privacy}","received_events_url":"https://api.github.com/users/scott-christopher/received_events","type":"User","site_admin":false},"body":"For new functions, the `@since` annotation will get added when the next release is tagged so this line should be removed. We should probably make a note of this in `CONTRIBUTING.md`.","created_at":"2015-12-14T01:57:50Z","updated_at":"2015-12-14T01:57:50Z","html_url":"https://github.com/ramda/ramda/pull/1546#discussion_r47456194","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/1546","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/47456194"},"html":{"href":"https://github.com/ramda/ramda/pull/1546#discussion_r47456194"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1546"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/1546","id":53516796,"html_url":"https://github.com/ramda/ramda/pull/1546","diff_url":"https://github.com/ramda/ramda/pull/1546.diff","patch_url":"https://github.com/ramda/ramda/pull/1546.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1546","number":1546,"state":"open","locked":false,"title":"Add `indexBy` function","user":{"login":"Chris911","id":1198196,"avatar_url":"https://avatars.githubusercontent.com/u/1198196?v=3","gravatar_id":"","url":"https://api.github.com/users/Chris911","html_url":"https://github.com/Chris911","followers_url":"https://api.github.com/users/Chris911/followers","following_url":"https://api.github.com/users/Chris911/following{/other_user}","gists_url":"https://api.github.com/users/Chris911/gists{/gist_id}","starred_url":"https://api.github.com/users/Chris911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chris911/subscriptions","organizations_url":"https://api.github.com/users/Chris911/orgs","repos_url":"https://api.github.com/users/Chris911/repos","events_url":"https://api.github.com/users/Chris911/events{/privacy}","received_events_url":"https://api.github.com/users/Chris911/received_events","type":"User","site_admin":false},"body":"Resolves #1545\r\n\r\nThis adds a new `indexBy` function. Given a property name to index-by and a list of objects returns an object indexing the objects by the given property. Highly inspired by this [cookbook example](https://github.com/ramda/ramda/wiki/Cookbook#index-objects-by-property-name). ","created_at":"2015-12-14T01:36:02Z","updated_at":"2015-12-14T01:57:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ffa0d27ebdf84a23ad2ef72f6e07df6c32790ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/1546/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/1546/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1546/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/c0d7b5d5bf118595dc3c973b5603d7b9a3e6d9ee","head":{"label":"Chris911:function/index-by","ref":"function/index-by","sha":"c0d7b5d5bf118595dc3c973b5603d7b9a3e6d9ee","user":{"login":"Chris911","id":1198196,"avatar_url":"https://avatars.githubusercontent.com/u/1198196?v=3","gravatar_id":"","url":"https://api.github.com/users/Chris911","html_url":"https://github.com/Chris911","followers_url":"https://api.github.com/users/Chris911/followers","following_url":"https://api.github.com/users/Chris911/following{/other_user}","gists_url":"https://api.github.com/users/Chris911/gists{/gist_id}","starred_url":"https://api.github.com/users/Chris911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chris911/subscriptions","organizations_url":"https://api.github.com/users/Chris911/orgs","repos_url":"https://api.github.com/users/Chris911/repos","events_url":"https://api.github.com/users/Chris911/events{/privacy}","received_events_url":"https://api.github.com/users/Chris911/received_events","type":"User","site_admin":false},"repo":{"id":47943516,"name":"ramda","full_name":"Chris911/ramda","owner":{"login":"Chris911","id":1198196,"avatar_url":"https://avatars.githubusercontent.com/u/1198196?v=3","gravatar_id":"","url":"https://api.github.com/users/Chris911","html_url":"https://github.com/Chris911","followers_url":"https://api.github.com/users/Chris911/followers","following_url":"https://api.github.com/users/Chris911/following{/other_user}","gists_url":"https://api.github.com/users/Chris911/gists{/gist_id}","starred_url":"https://api.github.com/users/Chris911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chris911/subscriptions","organizations_url":"https://api.github.com/users/Chris911/orgs","repos_url":"https://api.github.com/users/Chris911/repos","events_url":"https://api.github.com/users/Chris911/events{/privacy}","received_events_url":"https://api.github.com/users/Chris911/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chris911/ramda","description":":ram: Practical functional Javascript","fork":true,"url":"https://api.github.com/repos/Chris911/ramda","forks_url":"https://api.github.com/repos/Chris911/ramda/forks","keys_url":"https://api.github.com/repos/Chris911/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chris911/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chris911/ramda/teams","hooks_url":"https://api.github.com/repos/Chris911/ramda/hooks","issue_events_url":"https://api.github.com/repos/Chris911/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/Chris911/ramda/events","assignees_url":"https://api.github.com/repos/Chris911/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/Chris911/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/Chris911/ramda/tags","blobs_url":"https://api.github.com/repos/Chris911/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chris911/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chris911/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chris911/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chris911/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/Chris911/ramda/languages","stargazers_url":"https://api.github.com/repos/Chris911/ramda/stargazers","contributors_url":"https://api.github.com/repos/Chris911/ramda/contributors","subscribers_url":"https://api.github.com/repos/Chris911/ramda/subscribers","subscription_url":"https://api.github.com/repos/Chris911/ramda/subscription","commits_url":"https://api.github.com/repos/Chris911/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chris911/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chris911/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chris911/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chris911/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/Chris911/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chris911/ramda/merges","archive_url":"https://api.github.com/repos/Chris911/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chris911/ramda/downloads","issues_url":"https://api.github.com/repos/Chris911/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/Chris911/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/Chris911/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/Chris911/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chris911/ramda/labels{/name}","releases_url":"https://api.github.com/repos/Chris911/ramda/releases{/id}","created_at":"2015-12-14T00:39:52Z","updated_at":"2015-12-14T00:39:53Z","pushed_at":"2015-12-14T01:33:52Z","git_url":"git://github.com/Chris911/ramda.git","ssh_url":"git@github.com:Chris911/ramda.git","clone_url":"https://github.com/Chris911/ramda.git","svn_url":"https://github.com/Chris911/ramda","homepage":"http://ramdajs.com","size":5153,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ramda:master","ref":"master","sha":"bcb32a0f21635e6643c0ae12f1f8a0a264269f13","user":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"repo":{"id":10851820,"name":"ramda","full_name":"ramda/ramda","owner":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ramda/ramda","description":":ram: Practical functional Javascript","fork":false,"url":"https://api.github.com/repos/ramda/ramda","forks_url":"https://api.github.com/repos/ramda/ramda/forks","keys_url":"https://api.github.com/repos/ramda/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramda/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramda/ramda/teams","hooks_url":"https://api.github.com/repos/ramda/ramda/hooks","issue_events_url":"https://api.github.com/repos/ramda/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/ramda/ramda/events","assignees_url":"https://api.github.com/repos/ramda/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/ramda/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/ramda/ramda/tags","blobs_url":"https://api.github.com/repos/ramda/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramda/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramda/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramda/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/ramda/ramda/languages","stargazers_url":"https://api.github.com/repos/ramda/ramda/stargazers","contributors_url":"https://api.github.com/repos/ramda/ramda/contributors","subscribers_url":"https://api.github.com/repos/ramda/ramda/subscribers","subscription_url":"https://api.github.com/repos/ramda/ramda/subscription","commits_url":"https://api.github.com/repos/ramda/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramda/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramda/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramda/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramda/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/ramda/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramda/ramda/merges","archive_url":"https://api.github.com/repos/ramda/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramda/ramda/downloads","issues_url":"https://api.github.com/repos/ramda/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/ramda/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/ramda/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/ramda/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramda/ramda/labels{/name}","releases_url":"https://api.github.com/repos/ramda/ramda/releases{/id}","created_at":"2013-06-21T20:32:35Z","updated_at":"2015-12-14T01:25:43Z","pushed_at":"2015-12-14T01:36:02Z","git_url":"git://github.com/ramda/ramda.git","ssh_url":"git@github.com:ramda/ramda.git","clone_url":"https://github.com/ramda/ramda.git","svn_url":"https://github.com/ramda/ramda","homepage":"http://ramdajs.com","size":6325,"stargazers_count":3310,"watchers_count":3310,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":246,"mirror_url":null,"open_issues_count":86,"forks":246,"open_issues":86,"watchers":3310,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1546"},"html":{"href":"https://github.com/ramda/ramda/pull/1546"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/1546"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/1546/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1546/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1546/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/c0d7b5d5bf118595dc3c973b5603d7b9a3e6d9ee"}}}}