{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/931","labels_url":"https://api.github.com/repos/ramda/ramda/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/931/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/931/events","html_url":"https://github.com/ramda/ramda/issues/931","id":62434995,"number":931,"title":"sister to groupBy","user":{"login":"fyyyyy","id":3744048,"avatar_url":"https://avatars.githubusercontent.com/u/3744048?v=3","gravatar_id":"","url":"https://api.github.com/users/fyyyyy","html_url":"https://github.com/fyyyyy","followers_url":"https://api.github.com/users/fyyyyy/followers","following_url":"https://api.github.com/users/fyyyyy/following{/other_user}","gists_url":"https://api.github.com/users/fyyyyy/gists{/gist_id}","starred_url":"https://api.github.com/users/fyyyyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyyyyy/subscriptions","organizations_url":"https://api.github.com/users/fyyyyy/orgs","repos_url":"https://api.github.com/users/fyyyyy/repos","events_url":"https://api.github.com/users/fyyyyy/events{/privacy}","received_events_url":"https://api.github.com/users/fyyyyy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-17T15:45:42Z","updated_at":"2015-03-17T17:47:27Z","closed_at":null,"body":"From remote servers we often get arrays of objects. These objects typically contain id fields which are unique. What i would like to do is convert the array of objects in to a hashmap with the object's ids so they are quickly accessible by id.\r\n\r\nCurrenty i use groupBy, however it creates a hashmap with an array storage that wraps the object. I would like to return the object directly under the specified key.\r\n\r\n```js\r\n\r\nvar tracks = [ {id: 1, name: \"track1\"}, {id: 3, name.... ]\r\nR.indexBy('id')(tracks) //  => {1: {id: 1, name: \"track1\"}, 3: {id: 3, name.... }}\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/82495738","html_url":"https://github.com/ramda/ramda/issues/931#issuecomment-82495738","issue_url":"https://api.github.com/repos/ramda/ramda/issues/931","id":82495738,"user":{"login":"buzzdecafe","id":716260,"avatar_url":"https://avatars.githubusercontent.com/u/716260?v=3","gravatar_id":"","url":"https://api.github.com/users/buzzdecafe","html_url":"https://github.com/buzzdecafe","followers_url":"https://api.github.com/users/buzzdecafe/followers","following_url":"https://api.github.com/users/buzzdecafe/following{/other_user}","gists_url":"https://api.github.com/users/buzzdecafe/gists{/gist_id}","starred_url":"https://api.github.com/users/buzzdecafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzzdecafe/subscriptions","organizations_url":"https://api.github.com/users/buzzdecafe/orgs","repos_url":"https://api.github.com/users/buzzdecafe/repos","events_url":"https://api.github.com/users/buzzdecafe/events{/privacy}","received_events_url":"https://api.github.com/users/buzzdecafe/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T17:47:27Z","updated_at":"2015-03-17T17:47:27Z","body":"you could `nTuple(n:int, [vals])`, but how is that any better than just `[vals]`?"}}