{"action":"closed","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/1182","repository_url":"https://api.github.com/repos/josdejong/mathjs","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/1182/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/1182/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/1182/events","html_url":"https://github.com/josdejong/mathjs/issues/1182","id":343451444,"node_id":"MDU6SXNzdWUzNDM0NTE0NDQ=","number":1182,"title":"subset/index not working on terminal? ","user":{"login":"honeybar","id":20122746,"node_id":"MDQ6VXNlcjIwMTIyNzQ2","avatar_url":"https://avatars2.githubusercontent.com/u/20122746?v=4","gravatar_id":"","url":"https://api.github.com/users/honeybar","html_url":"https://github.com/honeybar","followers_url":"https://api.github.com/users/honeybar/followers","following_url":"https://api.github.com/users/honeybar/following{/other_user}","gists_url":"https://api.github.com/users/honeybar/gists{/gist_id}","starred_url":"https://api.github.com/users/honeybar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honeybar/subscriptions","organizations_url":"https://api.github.com/users/honeybar/orgs","repos_url":"https://api.github.com/users/honeybar/repos","events_url":"https://api.github.com/users/honeybar/events{/privacy}","received_events_url":"https://api.github.com/users/honeybar/received_events","type":"User","site_admin":false},"labels":[{"id":28569310,"node_id":"MDU6TGFiZWwyODU2OTMxMA==","url":"https://api.github.com/repos/josdejong/mathjs/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-23T00:05:14Z","updated_at":"2018-07-23T07:02:48Z","closed_at":"2018-07-23T07:02:48Z","author_association":"CONTRIBUTOR","body":"I try to run this particular example from the documentation [http://mathjs.org/docs/reference/functions/subset.html](http://mathjs.org/docs/reference/functions/subset.html) in particular this one:\r\n```\r\nconst d = [[1, 2], [3, 4]]\r\nmath.subset(d, math.index(1, 0)) \r\n\r\n```\r\nit doesn't run when I do it on terminal, however:\r\n```\r\n> d = [ [ 1, 2 ], [ 3, 4 ] ]\r\nd = [[1, 2], [3, 4]]\r\n> subset(d, index(1, 0))\r\nIndexError: Index out of range (0 < 1)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"josdejong"}}