{"action":"opened","issue":{"url":"https://api.github.com/repos/gkz/LiveScript/issues/784","labels_url":"https://api.github.com/repos/gkz/LiveScript/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/gkz/LiveScript/issues/784/comments","events_url":"https://api.github.com/repos/gkz/LiveScript/issues/784/events","html_url":"https://github.com/gkz/LiveScript/issues/784","id":112547975,"number":784,"title":"Object list literal in a function","user":{"login":"atifaziz","id":20511,"avatar_url":"https://avatars.githubusercontent.com/u/20511?v=3","gravatar_id":"","url":"https://api.github.com/users/atifaziz","html_url":"https://github.com/atifaziz","followers_url":"https://api.github.com/users/atifaziz/followers","following_url":"https://api.github.com/users/atifaziz/following{/other_user}","gists_url":"https://api.github.com/users/atifaziz/gists{/gist_id}","starred_url":"https://api.github.com/users/atifaziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atifaziz/subscriptions","organizations_url":"https://api.github.com/users/atifaziz/orgs","repos_url":"https://api.github.com/users/atifaziz/repos","events_url":"https://api.github.com/users/atifaziz/events{/privacy}","received_events_url":"https://api.github.com/users/atifaziz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T09:33:22Z","updated_at":"2015-10-21T09:33:22Z","closed_at":null,"body":"```\r\n[ 1 to 5]\r\n|> map ->\r\n  * x: it\r\n    y: it * 2\r\n  * x: it\r\n    y: it * it\r\n```\r\n\r\nReturns:\r\n\r\n```\r\n[{\"x\":1,\"y\":1},{\"x\":2,\"y\":4},{\"x\":3,\"y\":9}]\r\n```\r\n\r\nExpected:\r\n\r\n```\r\n[[{\"x\":1,\"y\":2},{\"x\":1,\"y\":1}],[{\"x\":2,\"y\":4},{\"x\":2,\"y\":4}],[{\"x\":3,\"y\":6},{\"x\":3,\"y\":9}]]\r\n```\r\n\r\nUgly workaround:\r\n\r\n```\r\n[ 1 to 3]\r\n|> map ->\r\n    r =\r\n      * x: it\r\n        y: it * 2\r\n      * x: it\r\n        y: it * it\r\n    r\r\n```\r\n\r\nAm I misunderstanding something about the syntax for object list literals?\r\n\r\nThanks."}}