{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/23529020","id":23529020,"diff_hunk":"@@ -33,12 +31,22 @@ var nAry = require('./nAry');\n  *      R.map(R.constructN(1, Widget), allConfigs); // a list of Widgets\n  */\n module.exports = _curry2(function constructN(n, Fn) {\n-    var f = function() {\n-        var Temp = function() {}, inst, ret;\n-        Temp.prototype = Fn.prototype;\n-        inst = new Temp();\n-        ret = Fn.apply(inst, arguments);\n-        return Object(ret) === ret ? ret : inst;\n-    };\n-    return n > 1 ? curry(nAry(n, f)) : f;","path":"src/constructN.js","position":20,"original_position":20,"commit_id":"a86a8823a379457afe83a1b00b2e68817e5dca59","original_commit_id":"a86a8823a379457afe83a1b00b2e68817e5dca59","user":{"login":"buzzdecafe","id":716260,"avatar_url":"https://avatars.githubusercontent.com/u/716260?v=3","gravatar_id":"","url":"https://api.github.com/users/buzzdecafe","html_url":"https://github.com/buzzdecafe","followers_url":"https://api.github.com/users/buzzdecafe/followers","following_url":"https://api.github.com/users/buzzdecafe/following{/other_user}","gists_url":"https://api.github.com/users/buzzdecafe/gists{/gist_id}","starred_url":"https://api.github.com/users/buzzdecafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzzdecafe/subscriptions","organizations_url":"https://api.github.com/users/buzzdecafe/orgs","repos_url":"https://api.github.com/users/buzzdecafe/repos","events_url":"https://api.github.com/users/buzzdecafe/events{/privacy}","received_events_url":"https://api.github.com/users/buzzdecafe/received_events","type":"User","site_admin":false},"body":"with the current \"throw on no args\" `curry`:\r\n\r\n```javascript\r\nfunction f() { return 'f'; }\r\nc = curry(f);\r\nc(); //=> TypeError: Function called with no arguments\r\n```\r\n\r\nso that's why nullary functions at least have to get special treatment. ","created_at":"2015-01-26T13:14:20Z","updated_at":"2015-01-26T13:14:20Z","html_url":"https://github.com/ramda/ramda/pull/761#discussion_r23529020","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/761","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/23529020"},"html":{"href":"https://github.com/ramda/ramda/pull/761#discussion_r23529020"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/761"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/761","id":28013622,"html_url":"https://github.com/ramda/ramda/pull/761","diff_url":"https://github.com/ramda/ramda/pull/761.diff","patch_url":"https://github.com/ramda/ramda/pull/761.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/761","number":761,"state":"open","locked":false,"title":"support Date constructor in R.construct and R.constructN","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},"body":"","created_at":"2015-01-26T09:19:15Z","updated_at":"2015-01-26T13:14:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e54768e48aa3964c2d940b87c100576bb91624e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/761/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/761/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/761/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/a86a8823a379457afe83a1b00b2e68817e5dca59","head":{"label":"davidchambers:construct","ref":"construct","sha":"a86a8823a379457afe83a1b00b2e68817e5dca59","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},"repo":{"id":22492045,"name":"ramda","full_name":"davidchambers/ramda","owner":{"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},"private":false,"html_url":"https://github.com/davidchambers/ramda","description":"","fork":true,"url":"https://api.github.com/repos/davidchambers/ramda","forks_url":"https://api.github.com/repos/davidchambers/ramda/forks","keys_url":"https://api.github.com/repos/davidchambers/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidchambers/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidchambers/ramda/teams","hooks_url":"https://api.github.com/repos/davidchambers/ramda/hooks","issue_events_url":"https://api.github.com/repos/davidchambers/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/davidchambers/ramda/events","assignees_url":"https://api.github.com/repos/davidchambers/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/davidchambers/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/davidchambers/ramda/tags","blobs_url":"https://api.github.com/repos/davidchambers/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidchambers/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidchambers/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidchambers/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidchambers/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/davidchambers/ramda/languages","stargazers_url":"https://api.github.com/repos/davidchambers/ramda/stargazers","contributors_url":"https://api.github.com/repos/davidchambers/ramda/contributors","subscribers_url":"https://api.github.com/repos/davidchambers/ramda/subscribers","subscription_url":"https://api.github.com/repos/davidchambers/ramda/subscription","commits_url":"https://api.github.com/repos/davidchambers/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidchambers/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidchambers/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidchambers/ramda/issues/comments/{number}","contents_url":"https://api.github.com/repos/davidchambers/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/davidchambers/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidchambers/ramda/merges","archive_url":"https://api.github.com/repos/davidchambers/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidchambers/ramda/downloads","issues_url":"https://api.github.com/repos/davidchambers/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/davidchambers/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/davidchambers/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/davidchambers/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidchambers/ramda/labels{/name}","releases_url":"https://api.github.com/repos/davidchambers/ramda/releases{/id}","created_at":"2014-08-01T01:56:04Z","updated_at":"2015-01-25T23:18:36Z","pushed_at":"2015-01-26T09:18:08Z","git_url":"git://github.com/davidchambers/ramda.git","ssh_url":"git@github.com:davidchambers/ramda.git","clone_url":"https://github.com/davidchambers/ramda.git","svn_url":"https://github.com/davidchambers/ramda","homepage":null,"size":4836,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ramda:master","ref":"master","sha":"94e75ed9da353a1ec25aced0af358fa2b3806255","user":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"repo":{"id":10851820,"name":"ramda","full_name":"ramda/ramda","owner":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ramda/ramda","description":"Practical functional Javascript","fork":false,"url":"https://api.github.com/repos/ramda/ramda","forks_url":"https://api.github.com/repos/ramda/ramda/forks","keys_url":"https://api.github.com/repos/ramda/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramda/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramda/ramda/teams","hooks_url":"https://api.github.com/repos/ramda/ramda/hooks","issue_events_url":"https://api.github.com/repos/ramda/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/ramda/ramda/events","assignees_url":"https://api.github.com/repos/ramda/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/ramda/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/ramda/ramda/tags","blobs_url":"https://api.github.com/repos/ramda/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramda/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramda/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramda/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/ramda/ramda/languages","stargazers_url":"https://api.github.com/repos/ramda/ramda/stargazers","contributors_url":"https://api.github.com/repos/ramda/ramda/contributors","subscribers_url":"https://api.github.com/repos/ramda/ramda/subscribers","subscription_url":"https://api.github.com/repos/ramda/ramda/subscription","commits_url":"https://api.github.com/repos/ramda/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramda/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramda/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramda/ramda/issues/comments/{number}","contents_url":"https://api.github.com/repos/ramda/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/ramda/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramda/ramda/merges","archive_url":"https://api.github.com/repos/ramda/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramda/ramda/downloads","issues_url":"https://api.github.com/repos/ramda/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/ramda/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/ramda/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/ramda/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramda/ramda/labels{/name}","releases_url":"https://api.github.com/repos/ramda/ramda/releases{/id}","created_at":"2013-06-21T20:32:35Z","updated_at":"2015-01-26T07:58:14Z","pushed_at":"2015-01-25T23:18:11Z","git_url":"git://github.com/ramda/ramda.git","ssh_url":"git@github.com:ramda/ramda.git","clone_url":"https://github.com/ramda/ramda.git","svn_url":"https://github.com/ramda/ramda","homepage":"http://ramdajs.com","size":8535,"stargazers_count":1534,"watchers_count":1534,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":111,"mirror_url":null,"open_issues_count":23,"forks":111,"open_issues":23,"watchers":1534,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/761"},"html":{"href":"https://github.com/ramda/ramda/pull/761"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/761"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/761/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/761/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/761/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/a86a8823a379457afe83a1b00b2e68817e5dca59"}}}}