{"action":"created","issue":{"url":"https://api.github.com/repos/ThePhD/sol2/issues/120","repository_url":"https://api.github.com/repos/ThePhD/sol2","labels_url":"https://api.github.com/repos/ThePhD/sol2/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/ThePhD/sol2/issues/120/comments","events_url":"https://api.github.com/repos/ThePhD/sol2/issues/120/events","html_url":"https://github.com/ThePhD/sol2/issues/120","id":161026108,"number":120,"title":"Append to table?","user":{"login":"eliasdaler","id":1285136,"avatar_url":"https://avatars.githubusercontent.com/u/1285136?v=3","gravatar_id":"","url":"https://api.github.com/users/eliasdaler","html_url":"https://github.com/eliasdaler","followers_url":"https://api.github.com/users/eliasdaler/followers","following_url":"https://api.github.com/users/eliasdaler/following{/other_user}","gists_url":"https://api.github.com/users/eliasdaler/gists{/gist_id}","starred_url":"https://api.github.com/users/eliasdaler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliasdaler/subscriptions","organizations_url":"https://api.github.com/users/eliasdaler/orgs","repos_url":"https://api.github.com/users/eliasdaler/repos","events_url":"https://api.github.com/users/eliasdaler/events{/privacy}","received_events_url":"https://api.github.com/users/eliasdaler/received_events","type":"User","site_admin":false},"labels":[{"id":307966292,"url":"https://api.github.com/repos/ThePhD/sol2/labels/Question.Arf?","name":"Question.Arf?","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":{"login":"ThePhD","id":2886436,"avatar_url":"https://avatars.githubusercontent.com/u/2886436?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePhD","html_url":"https://github.com/ThePhD","followers_url":"https://api.github.com/users/ThePhD/followers","following_url":"https://api.github.com/users/ThePhD/following{/other_user}","gists_url":"https://api.github.com/users/ThePhD/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePhD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePhD/subscriptions","organizations_url":"https://api.github.com/users/ThePhD/orgs","repos_url":"https://api.github.com/users/ThePhD/repos","events_url":"https://api.github.com/users/ThePhD/events{/privacy}","received_events_url":"https://api.github.com/users/ThePhD/received_events","type":"User","site_admin":false},"assignees":[{"login":"ThePhD","id":2886436,"avatar_url":"https://avatars.githubusercontent.com/u/2886436?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePhD","html_url":"https://github.com/ThePhD","followers_url":"https://api.github.com/users/ThePhD/followers","following_url":"https://api.github.com/users/ThePhD/following{/other_user}","gists_url":"https://api.github.com/users/ThePhD/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePhD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePhD/subscriptions","organizations_url":"https://api.github.com/users/ThePhD/orgs","repos_url":"https://api.github.com/users/ThePhD/repos","events_url":"https://api.github.com/users/ThePhD/events{/privacy}","received_events_url":"https://api.github.com/users/ThePhD/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ThePhD/sol2/milestones/3","html_url":"https://github.com/ThePhD/sol2/milestones/Bike.Shed","labels_url":"https://api.github.com/repos/ThePhD/sol2/milestones/3/labels","id":1679692,"number":3,"title":"Bike.Shed","description":"\"When did all these bikes get here...?\"","creator":{"login":"ThePhD","id":2886436,"avatar_url":"https://avatars.githubusercontent.com/u/2886436?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePhD","html_url":"https://github.com/ThePhD","followers_url":"https://api.github.com/users/ThePhD/followers","following_url":"https://api.github.com/users/ThePhD/following{/other_user}","gists_url":"https://api.github.com/users/ThePhD/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePhD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePhD/subscriptions","organizations_url":"https://api.github.com/users/ThePhD/orgs","repos_url":"https://api.github.com/users/ThePhD/repos","events_url":"https://api.github.com/users/ThePhD/events{/privacy}","received_events_url":"https://api.github.com/users/ThePhD/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":68,"state":"open","created_at":"2016-04-02T20:05:23Z","updated_at":"2016-11-06T20:30:39Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-06-18T14:04:58Z","updated_at":"2016-11-07T14:39:38Z","closed_at":"2016-06-19T21:15:48Z","body":"Sorry if it has been asked before, but is it possible to append stuff to tables?  It's useful when adding elements into array-like tables. For example:\n\n``` c++\nstd::vector<int> someVector = {1, 2, 3, 4};\nsol::table someTable = lua.create_table();\nfor(auto& elem : someVector) {\n    someTable.append(elem);\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/ThePhD/sol2/issues/comments/258852398","html_url":"https://github.com/ThePhD/sol2/issues/120#issuecomment-258852398","issue_url":"https://api.github.com/repos/ThePhD/sol2/issues/120","id":258852398,"user":{"login":"Mark-Joy","id":22109528,"avatar_url":"https://avatars.githubusercontent.com/u/22109528?v=3","gravatar_id":"","url":"https://api.github.com/users/Mark-Joy","html_url":"https://github.com/Mark-Joy","followers_url":"https://api.github.com/users/Mark-Joy/followers","following_url":"https://api.github.com/users/Mark-Joy/following{/other_user}","gists_url":"https://api.github.com/users/Mark-Joy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mark-Joy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mark-Joy/subscriptions","organizations_url":"https://api.github.com/users/Mark-Joy/orgs","repos_url":"https://api.github.com/users/Mark-Joy/repos","events_url":"https://api.github.com/users/Mark-Joy/events{/privacy}","received_events_url":"https://api.github.com/users/Mark-Joy/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T14:39:38Z","updated_at":"2016-11-07T14:39:38Z","body":"When assign: `lua[\"my_arr\"] = vec;` table's index start from 1. How to make it start from 0?"}}
{"actor":{"display_login":"Mark-Joy"}}