{"action":"opened","issue":{"url":"https://api.github.com/repos/yuin/gopher-lua/issues/19","labels_url":"https://api.github.com/repos/yuin/gopher-lua/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/yuin/gopher-lua/issues/19/comments","events_url":"https://api.github.com/repos/yuin/gopher-lua/issues/19/events","html_url":"https://github.com/yuin/gopher-lua/issues/19","id":68807007,"number":19,"title":"table.remove does not return deleted element","user":{"login":"bontibon","id":110883,"avatar_url":"https://avatars.githubusercontent.com/u/110883?v=3","gravatar_id":"","url":"https://api.github.com/users/bontibon","html_url":"https://github.com/bontibon","followers_url":"https://api.github.com/users/bontibon/followers","following_url":"https://api.github.com/users/bontibon/following{/other_user}","gists_url":"https://api.github.com/users/bontibon/gists{/gist_id}","starred_url":"https://api.github.com/users/bontibon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bontibon/subscriptions","organizations_url":"https://api.github.com/users/bontibon/orgs","repos_url":"https://api.github.com/users/bontibon/repos","events_url":"https://api.github.com/users/bontibon/events{/privacy}","received_events_url":"https://api.github.com/users/bontibon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T23:14:12Z","updated_at":"2015-04-15T23:14:12Z","closed_at":null,"body":"From the Lua 5.1 manual (emphasis mine):\r\n\r\n> ##### `table.remove (table [, pos])`\r\n\r\n> Removes from table the element at position pos, shifting down other elements to close the space, if necessary. **Returns the value of the removed element.** The default value for pos is n, where n is the length of the table, so that a call table.remove(t) removes the last element of table t.\r\n\r\nThis should probably be fixed for capability."}}