{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1676","repository_url":"https://api.github.com/repos/ramda/ramda","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1676/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1676/events","html_url":"https://github.com/ramda/ramda/issues/1676","id":138440612,"number":1676,"title":"note in the docs that insert does not work beyond the lenght of the array","user":{"login":"despairblue","id":927609,"avatar_url":"https://avatars.githubusercontent.com/u/927609?v=3","gravatar_id":"","url":"https://api.github.com/users/despairblue","html_url":"https://github.com/despairblue","followers_url":"https://api.github.com/users/despairblue/followers","following_url":"https://api.github.com/users/despairblue/following{/other_user}","gists_url":"https://api.github.com/users/despairblue/gists{/gist_id}","starred_url":"https://api.github.com/users/despairblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despairblue/subscriptions","organizations_url":"https://api.github.com/users/despairblue/orgs","repos_url":"https://api.github.com/users/despairblue/repos","events_url":"https://api.github.com/users/despairblue/events{/privacy}","received_events_url":"https://api.github.com/users/despairblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-04T10:35:03Z","updated_at":"2016-03-04T19:00:51Z","closed_at":null,"body":"```js\r\n> r = require('ramda')\r\n// ...\r\n> a = r.insert(10, 'bar', [])\r\n[ 'bar' ]\r\n> a[10]\r\nundefined\r\n> a[0]\r\n'bar'\r\n>\r\n```\r\n\r\nOr could this behaviour be changed?"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/192411264","html_url":"https://github.com/ramda/ramda/issues/1676#issuecomment-192411264","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1676","id":192411264,"user":{"login":"despairblue","id":927609,"avatar_url":"https://avatars.githubusercontent.com/u/927609?v=3","gravatar_id":"","url":"https://api.github.com/users/despairblue","html_url":"https://github.com/despairblue","followers_url":"https://api.github.com/users/despairblue/followers","following_url":"https://api.github.com/users/despairblue/following{/other_user}","gists_url":"https://api.github.com/users/despairblue/gists{/gist_id}","starred_url":"https://api.github.com/users/despairblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despairblue/subscriptions","organizations_url":"https://api.github.com/users/despairblue/orgs","repos_url":"https://api.github.com/users/despairblue/repos","events_url":"https://api.github.com/users/despairblue/events{/privacy}","received_events_url":"https://api.github.com/users/despairblue/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T19:00:51Z","updated_at":"2016-03-04T19:00:51Z","body":"My use case is actually that I have a spreadsheet (object of cells) from [js-xlsx](https://github.com/SheetJS/js-xlsx) and I want to reduce it into an object of arrays (rows):\r\n\r\n```js\r\nconst s = { 'A2': 'ho', 'A1': 'hey' }\r\nr.deepEqual(f(s), { 'A': ['hey', 'ho'] })\r\n```\r\n\r\nThis would easily be solvable by using `toPairs`, `reduce` and `append`, except that the object keys may be unsorted - as in this example above - and thus `append` does not work here. Having `insert` simply inserting wherever would solve this. "}}