{"action":"created","comment":{"url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/comments/86548021","pull_request_review_id":7202434,"id":86548021,"diff_hunk":"@@ -0,0 +1,10 @@\n+function lazyMemoEvaluation(func) {\n+  var result;\n+  var lazyEvaluation = func.bind.apply(func, arguments);","path":"Task2-Javascript/src/memoization.js","position":3,"original_position":3,"commit_id":"15e284c0bb259fcf18071d5de81d0f8d4e4f9bbb","original_commit_id":"15e284c0bb259fcf18071d5de81d0f8d4e4f9bbb","user":{"login":"ilyahumbar","id":13537012,"avatar_url":"https://avatars.githubusercontent.com/u/13537012?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyahumbar","html_url":"https://github.com/ilyahumbar","followers_url":"https://api.github.com/users/ilyahumbar/followers","following_url":"https://api.github.com/users/ilyahumbar/following{/other_user}","gists_url":"https://api.github.com/users/ilyahumbar/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyahumbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyahumbar/subscriptions","organizations_url":"https://api.github.com/users/ilyahumbar/orgs","repos_url":"https://api.github.com/users/ilyahumbar/repos","events_url":"https://api.github.com/users/ilyahumbar/events{/privacy}","received_events_url":"https://api.github.com/users/ilyahumbar/received_events","type":"User","site_admin":false},"body":"Function should take function and must not wrap its arguments. It should work that way:\r\nvar lazyMemoSum = lazyMemoEvaluation(sum);\r\nvar result = lazyMemoSum(2, 3, 4);\r\nvar result2 =  lazyMemoSum(2, 3, 4); //function sum must not be called twice\r\nvar result3 = lazyMemoSum(2, 5);\r\nvar result3 = lazyMemoSum(2, 5); //function sum must not be called twice\r\n","created_at":"2016-11-04T13:48:26Z","updated_at":"2016-11-04T13:48:26Z","html_url":"https://github.com/iTechArt-D5-G1/denis/pull/2#discussion_r86548021","pull_request_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/comments/86548021"},"html":{"href":"https://github.com/iTechArt-D5-G1/denis/pull/2#discussion_r86548021"},"pull_request":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2","id":92185881,"html_url":"https://github.com/iTechArt-D5-G1/denis/pull/2","diff_url":"https://github.com/iTechArt-D5-G1/denis/pull/2.diff","patch_url":"https://github.com/iTechArt-D5-G1/denis/pull/2.patch","issue_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues/2","number":2,"state":"open","locked":false,"title":"Task2 javascript","user":{"login":"denis1222223","id":15806322,"avatar_url":"https://avatars.githubusercontent.com/u/15806322?v=3","gravatar_id":"","url":"https://api.github.com/users/denis1222223","html_url":"https://github.com/denis1222223","followers_url":"https://api.github.com/users/denis1222223/followers","following_url":"https://api.github.com/users/denis1222223/following{/other_user}","gists_url":"https://api.github.com/users/denis1222223/gists{/gist_id}","starred_url":"https://api.github.com/users/denis1222223/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis1222223/subscriptions","organizations_url":"https://api.github.com/users/denis1222223/orgs","repos_url":"https://api.github.com/users/denis1222223/repos","events_url":"https://api.github.com/users/denis1222223/events{/privacy}","received_events_url":"https://api.github.com/users/denis1222223/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-11-03T16:06:49Z","updated_at":"2016-11-04T13:48:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f0cd7a4c9fd53d1dea80f8bc8c3a2e7e6c70a7c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2/commits","review_comments_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2/comments","review_comment_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues/2/comments","statuses_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/statuses/15e284c0bb259fcf18071d5de81d0f8d4e4f9bbb","head":{"label":"denis1222223:Task2-Javascript","ref":"Task2-Javascript","sha":"15e284c0bb259fcf18071d5de81d0f8d4e4f9bbb","user":{"login":"denis1222223","id":15806322,"avatar_url":"https://avatars.githubusercontent.com/u/15806322?v=3","gravatar_id":"","url":"https://api.github.com/users/denis1222223","html_url":"https://github.com/denis1222223","followers_url":"https://api.github.com/users/denis1222223/followers","following_url":"https://api.github.com/users/denis1222223/following{/other_user}","gists_url":"https://api.github.com/users/denis1222223/gists{/gist_id}","starred_url":"https://api.github.com/users/denis1222223/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis1222223/subscriptions","organizations_url":"https://api.github.com/users/denis1222223/orgs","repos_url":"https://api.github.com/users/denis1222223/repos","events_url":"https://api.github.com/users/denis1222223/events{/privacy}","received_events_url":"https://api.github.com/users/denis1222223/received_events","type":"User","site_admin":false},"repo":{"id":71794034,"name":"denis","full_name":"denis1222223/denis","owner":{"login":"denis1222223","id":15806322,"avatar_url":"https://avatars.githubusercontent.com/u/15806322?v=3","gravatar_id":"","url":"https://api.github.com/users/denis1222223","html_url":"https://github.com/denis1222223","followers_url":"https://api.github.com/users/denis1222223/followers","following_url":"https://api.github.com/users/denis1222223/following{/other_user}","gists_url":"https://api.github.com/users/denis1222223/gists{/gist_id}","starred_url":"https://api.github.com/users/denis1222223/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis1222223/subscriptions","organizations_url":"https://api.github.com/users/denis1222223/orgs","repos_url":"https://api.github.com/users/denis1222223/repos","events_url":"https://api.github.com/users/denis1222223/events{/privacy}","received_events_url":"https://api.github.com/users/denis1222223/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denis1222223/denis","description":null,"fork":true,"url":"https://api.github.com/repos/denis1222223/denis","forks_url":"https://api.github.com/repos/denis1222223/denis/forks","keys_url":"https://api.github.com/repos/denis1222223/denis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denis1222223/denis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denis1222223/denis/teams","hooks_url":"https://api.github.com/repos/denis1222223/denis/hooks","issue_events_url":"https://api.github.com/repos/denis1222223/denis/issues/events{/number}","events_url":"https://api.github.com/repos/denis1222223/denis/events","assignees_url":"https://api.github.com/repos/denis1222223/denis/assignees{/user}","branches_url":"https://api.github.com/repos/denis1222223/denis/branches{/branch}","tags_url":"https://api.github.com/repos/denis1222223/denis/tags","blobs_url":"https://api.github.com/repos/denis1222223/denis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denis1222223/denis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denis1222223/denis/git/refs{/sha}","trees_url":"https://api.github.com/repos/denis1222223/denis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denis1222223/denis/statuses/{sha}","languages_url":"https://api.github.com/repos/denis1222223/denis/languages","stargazers_url":"https://api.github.com/repos/denis1222223/denis/stargazers","contributors_url":"https://api.github.com/repos/denis1222223/denis/contributors","subscribers_url":"https://api.github.com/repos/denis1222223/denis/subscribers","subscription_url":"https://api.github.com/repos/denis1222223/denis/subscription","commits_url":"https://api.github.com/repos/denis1222223/denis/commits{/sha}","git_commits_url":"https://api.github.com/repos/denis1222223/denis/git/commits{/sha}","comments_url":"https://api.github.com/repos/denis1222223/denis/comments{/number}","issue_comment_url":"https://api.github.com/repos/denis1222223/denis/issues/comments{/number}","contents_url":"https://api.github.com/repos/denis1222223/denis/contents/{+path}","compare_url":"https://api.github.com/repos/denis1222223/denis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denis1222223/denis/merges","archive_url":"https://api.github.com/repos/denis1222223/denis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denis1222223/denis/downloads","issues_url":"https://api.github.com/repos/denis1222223/denis/issues{/number}","pulls_url":"https://api.github.com/repos/denis1222223/denis/pulls{/number}","milestones_url":"https://api.github.com/repos/denis1222223/denis/milestones{/number}","notifications_url":"https://api.github.com/repos/denis1222223/denis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denis1222223/denis/labels{/name}","releases_url":"https://api.github.com/repos/denis1222223/denis/releases{/id}","deployments_url":"https://api.github.com/repos/denis1222223/denis/deployments","created_at":"2016-10-24T13:51:52Z","updated_at":"2016-10-24T12:01:36Z","pushed_at":"2016-11-03T16:06:26Z","git_url":"git://github.com/denis1222223/denis.git","ssh_url":"git@github.com:denis1222223/denis.git","clone_url":"https://github.com/denis1222223/denis.git","svn_url":"https://github.com/denis1222223/denis","homepage":null,"size":347,"stargazers_count":0,"watchers_count":0,"language":null,"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":"iTechArt-D5-G1:master","ref":"master","sha":"a6c622ae13ce78a1c9d8e8131a53b986dd3868de","user":{"login":"iTechArt-D5-G1","id":20359869,"avatar_url":"https://avatars.githubusercontent.com/u/20359869?v=3","gravatar_id":"","url":"https://api.github.com/users/iTechArt-D5-G1","html_url":"https://github.com/iTechArt-D5-G1","followers_url":"https://api.github.com/users/iTechArt-D5-G1/followers","following_url":"https://api.github.com/users/iTechArt-D5-G1/following{/other_user}","gists_url":"https://api.github.com/users/iTechArt-D5-G1/gists{/gist_id}","starred_url":"https://api.github.com/users/iTechArt-D5-G1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTechArt-D5-G1/subscriptions","organizations_url":"https://api.github.com/users/iTechArt-D5-G1/orgs","repos_url":"https://api.github.com/users/iTechArt-D5-G1/repos","events_url":"https://api.github.com/users/iTechArt-D5-G1/events{/privacy}","received_events_url":"https://api.github.com/users/iTechArt-D5-G1/received_events","type":"Organization","site_admin":false},"repo":{"id":71784495,"name":"denis","full_name":"iTechArt-D5-G1/denis","owner":{"login":"iTechArt-D5-G1","id":20359869,"avatar_url":"https://avatars.githubusercontent.com/u/20359869?v=3","gravatar_id":"","url":"https://api.github.com/users/iTechArt-D5-G1","html_url":"https://github.com/iTechArt-D5-G1","followers_url":"https://api.github.com/users/iTechArt-D5-G1/followers","following_url":"https://api.github.com/users/iTechArt-D5-G1/following{/other_user}","gists_url":"https://api.github.com/users/iTechArt-D5-G1/gists{/gist_id}","starred_url":"https://api.github.com/users/iTechArt-D5-G1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iTechArt-D5-G1/subscriptions","organizations_url":"https://api.github.com/users/iTechArt-D5-G1/orgs","repos_url":"https://api.github.com/users/iTechArt-D5-G1/repos","events_url":"https://api.github.com/users/iTechArt-D5-G1/events{/privacy}","received_events_url":"https://api.github.com/users/iTechArt-D5-G1/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iTechArt-D5-G1/denis","description":null,"fork":false,"url":"https://api.github.com/repos/iTechArt-D5-G1/denis","forks_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/forks","keys_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/teams","hooks_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/hooks","issue_events_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues/events{/number}","events_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/events","assignees_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/assignees{/user}","branches_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/branches{/branch}","tags_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/tags","blobs_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/git/refs{/sha}","trees_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/statuses/{sha}","languages_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/languages","stargazers_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/stargazers","contributors_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/contributors","subscribers_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/subscribers","subscription_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/subscription","commits_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/commits{/sha}","git_commits_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/git/commits{/sha}","comments_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/comments{/number}","issue_comment_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues/comments{/number}","contents_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/contents/{+path}","compare_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/merges","archive_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/downloads","issues_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues{/number}","pulls_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls{/number}","milestones_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/milestones{/number}","notifications_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/labels{/name}","releases_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/releases{/id}","deployments_url":"https://api.github.com/repos/iTechArt-D5-G1/denis/deployments","created_at":"2016-10-24T12:01:36Z","updated_at":"2016-10-31T11:30:45Z","pushed_at":"2016-11-03T16:06:50Z","git_url":"git://github.com/iTechArt-D5-G1/denis.git","ssh_url":"git@github.com:iTechArt-D5-G1/denis.git","clone_url":"https://github.com/iTechArt-D5-G1/denis.git","svn_url":"https://github.com/iTechArt-D5-G1/denis","homepage":null,"size":294,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2"},"html":{"href":"https://github.com/iTechArt-D5-G1/denis/pull/2"},"issue":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues/2"},"comments":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/iTechArt-D5-G1/denis/statuses/15e284c0bb259fcf18071d5de81d0f8d4e4f9bbb"}}}}
{"actor":{"display_login":"ilyahumbar"}}