{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1341","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1341/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1341/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1341/events","html_url":"https://github.com/ramda/ramda/issues/1341","id":101561224,"number":1341,"title":"Compose with higher order arity","user":{"login":"cscalfani","id":746561,"avatar_url":"https://avatars.githubusercontent.com/u/746561?v=3","gravatar_id":"","url":"https://api.github.com/users/cscalfani","html_url":"https://github.com/cscalfani","followers_url":"https://api.github.com/users/cscalfani/followers","following_url":"https://api.github.com/users/cscalfani/following{/other_user}","gists_url":"https://api.github.com/users/cscalfani/gists{/gist_id}","starred_url":"https://api.github.com/users/cscalfani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cscalfani/subscriptions","organizations_url":"https://api.github.com/users/cscalfani/orgs","repos_url":"https://api.github.com/users/cscalfani/repos","events_url":"https://api.github.com/users/cscalfani/events{/privacy}","received_events_url":"https://api.github.com/users/cscalfani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-18T03:21:04Z","updated_at":"2015-08-25T10:49:41Z","closed_at":null,"body":"I would like to code the following:\r\n\r\n```js\r\nR.compose(console.log, R.multiply, R.inc)(3)(4); // displays 16\r\n```\r\n\r\nThe problem with `R.compose` is that it **only** allows for functions of arity of 1.\r\n\r\nIs there an alternative version of compose?"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/134553694","html_url":"https://github.com/ramda/ramda/issues/1341#issuecomment-134553694","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1341","id":134553694,"user":{"login":"TheLudd","id":557295,"avatar_url":"https://avatars.githubusercontent.com/u/557295?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLudd","html_url":"https://github.com/TheLudd","followers_url":"https://api.github.com/users/TheLudd/followers","following_url":"https://api.github.com/users/TheLudd/following{/other_user}","gists_url":"https://api.github.com/users/TheLudd/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLudd/subscriptions","organizations_url":"https://api.github.com/users/TheLudd/orgs","repos_url":"https://api.github.com/users/TheLudd/repos","events_url":"https://api.github.com/users/TheLudd/events{/privacy}","received_events_url":"https://api.github.com/users/TheLudd/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T10:49:41Z","updated_at":"2015-08-25T10:49:41Z","body":"> Well. Then you have compose, composeBinary, composeAll and composeBinaryAll. I'm not convinced that will end up being simpler.\r\n\r\nSimpler is exactly what I think it is. I agree that it might feel a bit cluttered but I believe I would prefer this over the other. But no solution is perfect.\r\n\r\n> The only think I'm opposed to is not having a variadic curry function\r\n\r\nYou mean compose? =)\r\n\r\nYes I agree. If a function is fully varardic, putting the arguments in an array makes no difference.\r\n"}}