{"action":"created","issue":{"url":"https://api.github.com/repos/mirven/underscore.lua/issues/14","labels_url":"https://api.github.com/repos/mirven/underscore.lua/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mirven/underscore.lua/issues/14/comments","events_url":"https://api.github.com/repos/mirven/underscore.lua/issues/14/events","html_url":"https://github.com/mirven/underscore.lua/issues/14","id":38360573,"number":14,"title":"function compose bug","user":{"login":"erpeng","id":3140356,"avatar_url":"https://avatars.githubusercontent.com/u/3140356?v=3","gravatar_id":"","url":"https://api.github.com/users/erpeng","html_url":"https://github.com/erpeng","followers_url":"https://api.github.com/users/erpeng/followers","following_url":"https://api.github.com/users/erpeng/following{/other_user}","gists_url":"https://api.github.com/users/erpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/erpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erpeng/subscriptions","organizations_url":"https://api.github.com/users/erpeng/orgs","repos_url":"https://api.github.com/users/erpeng/repos","events_url":"https://api.github.com/users/erpeng/events{/privacy}","received_events_url":"https://api.github.com/users/erpeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-22T01:12:51Z","updated_at":"2015-07-24T11:15:41Z","closed_at":null,"body":"When we use underscore like this:\r\nus=require \"underscore\"\r\nf=us.compose(print,function(a) return a+1 end)\r\nf(1) will trigger this bug.\r\n\r\nMaybe in line 359 \r\n\t\t\"return funcs[1](call_funcs(_.rest(funcs), ...))\"\r\nshould change as\r\n                \"return funcs[1](call_funcs(Underscore.rest(funcs),...))\""},"comment":{"url":"https://api.github.com/repos/mirven/underscore.lua/issues/comments/124479546","html_url":"https://github.com/mirven/underscore.lua/issues/14#issuecomment-124479546","issue_url":"https://api.github.com/repos/mirven/underscore.lua/issues/14","id":124479546,"user":{"login":"hasipon","id":802074,"avatar_url":"https://avatars.githubusercontent.com/u/802074?v=3","gravatar_id":"","url":"https://api.github.com/users/hasipon","html_url":"https://github.com/hasipon","followers_url":"https://api.github.com/users/hasipon/followers","following_url":"https://api.github.com/users/hasipon/following{/other_user}","gists_url":"https://api.github.com/users/hasipon/gists{/gist_id}","starred_url":"https://api.github.com/users/hasipon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasipon/subscriptions","organizations_url":"https://api.github.com/users/hasipon/orgs","repos_url":"https://api.github.com/users/hasipon/repos","events_url":"https://api.github.com/users/hasipon/events{/privacy}","received_events_url":"https://api.github.com/users/hasipon/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T11:15:41Z","updated_at":"2015-07-24T11:15:41Z","body":"```\r\n_=require \"underscore\"\r\nf=_.compose(print,function(a) return a+1 end)\r\nf(2) -- no error\r\n```\r\n```\r\nus=require \"underscore\"\r\nf=us.compose(print,function(a) return a+1 end)\r\nf(2) -- will trigger this bug\r\n```\r\n\r\nline 359\r\n``return funcs[1](call_funcs(_.rest(funcs), ...))``\r\nshould change as\r\n``return funcs[1](call_funcs(Underscore.rest(funcs), ...))``"}}