{"action":"created","issue":{"url":"https://api.github.com/repos/Suor/funcy/issues/48","repository_url":"https://api.github.com/repos/Suor/funcy","labels_url":"https://api.github.com/repos/Suor/funcy/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/Suor/funcy/issues/48/comments","events_url":"https://api.github.com/repos/Suor/funcy/issues/48/events","html_url":"https://github.com/Suor/funcy/issues/48","id":188284391,"number":48,"title":"All functions in the library should be curried.","user":{"login":"eshansingh","id":8231396,"avatar_url":"https://avatars.githubusercontent.com/u/8231396?v=3","gravatar_id":"","url":"https://api.github.com/users/eshansingh","html_url":"https://github.com/eshansingh","followers_url":"https://api.github.com/users/eshansingh/followers","following_url":"https://api.github.com/users/eshansingh/following{/other_user}","gists_url":"https://api.github.com/users/eshansingh/gists{/gist_id}","starred_url":"https://api.github.com/users/eshansingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eshansingh/subscriptions","organizations_url":"https://api.github.com/users/eshansingh/orgs","repos_url":"https://api.github.com/users/eshansingh/repos","events_url":"https://api.github.com/users/eshansingh/events{/privacy}","received_events_url":"https://api.github.com/users/eshansingh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-09T16:05:54Z","updated_at":"2016-11-09T16:07:53Z","closed_at":null,"body":"I think making all functions from `funcy` automatically curried would simplify a vast number of use cases. For example, for an `extract_int` example (where `extract_int(\"Hello, 123! We are 456!\")` => `[123, 456]`), without autocurry, the current best way to do this is:\r\n\r\n```python\r\nfrom funcy import map, partial, rcompose, re_all\r\nextract_int = rcompose(partial(re_all, r'\\d+'), partial(map, int))\r\n```\r\n\r\nOf course, we could use `autocurry` on them ourselves - but this doesn't seem to work well with some functions (I tested only with `map` and `re_all`, surprisingly `re_all` works):\r\n\r\n```python\r\n>>> from funcy import map, autocurry\r\n>>> map = autocurry(map)\r\n>>> map(int)([1, 2, 3])\r\n# .... blah error stuff ....\r\nTypeError: map() requires at least two args\r\n```\r\n\r\nThis and other such problems could be averted by having all functions (at least those in the library) automatically curried."},"comment":{"url":"https://api.github.com/repos/Suor/funcy/issues/comments/259452120","html_url":"https://github.com/Suor/funcy/issues/48#issuecomment-259452120","issue_url":"https://api.github.com/repos/Suor/funcy/issues/48","id":259452120,"user":{"login":"eshansingh","id":8231396,"avatar_url":"https://avatars.githubusercontent.com/u/8231396?v=3","gravatar_id":"","url":"https://api.github.com/users/eshansingh","html_url":"https://github.com/eshansingh","followers_url":"https://api.github.com/users/eshansingh/followers","following_url":"https://api.github.com/users/eshansingh/following{/other_user}","gists_url":"https://api.github.com/users/eshansingh/gists{/gist_id}","starred_url":"https://api.github.com/users/eshansingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eshansingh/subscriptions","organizations_url":"https://api.github.com/users/eshansingh/orgs","repos_url":"https://api.github.com/users/eshansingh/repos","events_url":"https://api.github.com/users/eshansingh/events{/privacy}","received_events_url":"https://api.github.com/users/eshansingh/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T16:07:53Z","updated_at":"2016-11-09T16:07:53Z","body":"Though note that I have reason to believe the `map` error might be just a naming conflict; it's a completely separate issue anyway."}}
{"actor":{"display_login":"eshansingh"}}