{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/836","labels_url":"https://api.github.com/repos/ramda/ramda/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/836/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/836/events","html_url":"https://github.com/ramda/ramda/pull/836","id":58697069,"number":836,"title":"invariants for partial application","user":{"login":"davidchambers","id":210406,"avatar_url":"https://avatars.githubusercontent.com/u/210406?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchambers","html_url":"https://github.com/davidchambers","followers_url":"https://api.github.com/users/davidchambers/followers","following_url":"https://api.github.com/users/davidchambers/following{/other_user}","gists_url":"https://api.github.com/users/davidchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchambers/subscriptions","organizations_url":"https://api.github.com/users/davidchambers/orgs","repos_url":"https://api.github.com/users/davidchambers/repos","events_url":"https://api.github.com/users/davidchambers/events{/privacy}","received_events_url":"https://api.github.com/users/davidchambers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-02-24T05:57:46Z","updated_at":"2015-03-01T20:45:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/836","html_url":"https://github.com/ramda/ramda/pull/836","diff_url":"https://github.com/ramda/ramda/pull/836.diff","patch_url":"https://github.com/ramda/ramda/pull/836.patch"},"body":"I set out to :curry: the few functions not yet curried and found myself tackling a larger issue.\r\n\r\nI'd like to guarantee consistent handling of arguments to Ramda functions. This pull request defines three invariants:\r\n\r\n1.  For every function `f` where `f.length > 0`, applying `f` to no arguments results in a TypeError being thrown. (For the record, I don't like this behaviour. I'd prefer to return a function equivalent to `f`.)\r\n\r\n2.  For every function `f` where `f.length > 0`, applying `f` to `R.__` gives a function equivalent to `f`.\r\n\r\n3.  For every function `f` where `f.length > 1`, applying `f` to any value other than `R.__` gives a function `g` with length `f.length - 1`. All three invariants hold for `g` and all \"descendants\" of `g`.\r\n"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/76629564","html_url":"https://github.com/ramda/ramda/pull/836#issuecomment-76629564","issue_url":"https://api.github.com/repos/ramda/ramda/issues/836","id":76629564,"user":{"login":"CrossEye","id":151263,"avatar_url":"https://avatars.githubusercontent.com/u/151263?v=3","gravatar_id":"","url":"https://api.github.com/users/CrossEye","html_url":"https://github.com/CrossEye","followers_url":"https://api.github.com/users/CrossEye/followers","following_url":"https://api.github.com/users/CrossEye/following{/other_user}","gists_url":"https://api.github.com/users/CrossEye/gists{/gist_id}","starred_url":"https://api.github.com/users/CrossEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrossEye/subscriptions","organizations_url":"https://api.github.com/users/CrossEye/orgs","repos_url":"https://api.github.com/users/CrossEye/repos","events_url":"https://api.github.com/users/CrossEye/events{/privacy}","received_events_url":"https://api.github.com/users/CrossEye/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T20:45:24Z","updated_at":"2015-03-01T20:45:24Z","body":":herb:"}}