{"action":"created","issue":{"url":"https://api.github.com/repos/pfultz2/Fit/issues/55","labels_url":"https://api.github.com/repos/pfultz2/Fit/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/pfultz2/Fit/issues/55/comments","events_url":"https://api.github.com/repos/pfultz2/Fit/issues/55/events","html_url":"https://github.com/pfultz2/Fit/issues/55","id":109658265,"number":55,"title":"apply - what is the utility of apply?","user":{"login":"viboes","id":721225,"avatar_url":"https://avatars.githubusercontent.com/u/721225?v=3","gravatar_id":"","url":"https://api.github.com/users/viboes","html_url":"https://github.com/viboes","followers_url":"https://api.github.com/users/viboes/followers","following_url":"https://api.github.com/users/viboes/following{/other_user}","gists_url":"https://api.github.com/users/viboes/gists{/gist_id}","starred_url":"https://api.github.com/users/viboes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viboes/subscriptions","organizations_url":"https://api.github.com/users/viboes/orgs","repos_url":"https://api.github.com/users/viboes/repos","events_url":"https://api.github.com/users/viboes/events{/privacy}","received_events_url":"https://api.github.com/users/viboes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-04T02:21:21Z","updated_at":"2015-10-05T22:54:55Z","closed_at":null,"body":"Oh, I believe I have found why I don't understand. The template parameters TS are not part of the function apply \r\nThis\r\n```\r\ntemplate<class F, class... Ts>\r\nconstexpr auto apply(F&& f, Ts&&... xs);\r\n```\r\nshould be\r\n```\r\ntemplate<class F>\r\nconstexpr auto apply(F&& f);\r\n```\r\n\r\nThe semantics given us\r\n```\r\nassert(apply(f)(xs...) == f(xs...));\r\n```\r\n\r\nBut the usage is incompatible\r\n\r\n```\r\nassert(fit::apply(sum_f(), 1, 2) == 3);\r\n```\r\n\r\nthat I believe should be\r\n```c££\r\nassert(fit::apply(sum_f())(1, 2) == 3);\r\n```\r\n\r\nUnfortunately the implementation is not inline at all."},"comment":{"url":"https://api.github.com/repos/pfultz2/Fit/issues/comments/145691782","html_url":"https://github.com/pfultz2/Fit/issues/55#issuecomment-145691782","issue_url":"https://api.github.com/repos/pfultz2/Fit/issues/55","id":145691782,"user":{"login":"pfultz2","id":1306044,"avatar_url":"https://avatars.githubusercontent.com/u/1306044?v=3","gravatar_id":"","url":"https://api.github.com/users/pfultz2","html_url":"https://github.com/pfultz2","followers_url":"https://api.github.com/users/pfultz2/followers","following_url":"https://api.github.com/users/pfultz2/following{/other_user}","gists_url":"https://api.github.com/users/pfultz2/gists{/gist_id}","starred_url":"https://api.github.com/users/pfultz2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfultz2/subscriptions","organizations_url":"https://api.github.com/users/pfultz2/orgs","repos_url":"https://api.github.com/users/pfultz2/repos","events_url":"https://api.github.com/users/pfultz2/events{/privacy}","received_events_url":"https://api.github.com/users/pfultz2/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T22:54:55Z","updated_at":"2015-10-05T22:54:55Z","body":"> Could you add this example or another more user friendly? \r\n\r\nYea I will."}}