{"action":"created","comment":{"url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/comments/183241651","pull_request_review_id":114205975,"id":183241651,"diff_hunk":"@@ -96,32 +96,28 @@ export class Set extends SetCollection {\n   }\n \n   intersect(...iters) {\n-    if (iters.length === 0) {\n-      return this;\n-    }\n-    iters = iters.map(iter => SetCollection(iter));\n-    const toRemove = [];\n-    this.forEach(value => {\n-      if (!iters.every(iter => iter.includes(value))) {\n-        toRemove.push(value);\n-      }\n-    });\n-    return this.withMutations(set => {\n-      toRemove.forEach(value => {\n-        set.remove(value);\n-      });\n-    });\n+    return this.subtractOrIntersect(iters, 'intersect');\n   }\n \n   subtract(...iters) {\n+    return this.subtractOrIntersect(iters, 'subtract');","path":"src/Set.js","position":23,"original_position":23,"commit_id":"2dcd95a1a2709ad190532773e9701df9157abb5b","original_commit_id":"2dcd95a1a2709ad190532773e9701df9157abb5b","user":{"login":"Tajtesz","id":26277351,"avatar_url":"https://avatars3.githubusercontent.com/u/26277351?v=4","gravatar_id":"","url":"https://api.github.com/users/Tajtesz","html_url":"https://github.com/Tajtesz","followers_url":"https://api.github.com/users/Tajtesz/followers","following_url":"https://api.github.com/users/Tajtesz/following{/other_user}","gists_url":"https://api.github.com/users/Tajtesz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tajtesz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tajtesz/subscriptions","organizations_url":"https://api.github.com/users/Tajtesz/orgs","repos_url":"https://api.github.com/users/Tajtesz/repos","events_url":"https://api.github.com/users/Tajtesz/events{/privacy}","received_events_url":"https://api.github.com/users/Tajtesz/received_events","type":"User","site_admin":false},"body":"Kódduplikációt jelzett a Codacity, amit így próbáltam kiküszöbölni, de igazából valóban szebb lenne külön. Maradjon az eredeti?","created_at":"2018-04-22T15:53:56Z","updated_at":"2018-04-22T15:53:56Z","html_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018/pull/3#discussion_r183241651","pull_request_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/comments/183241651"},"html":{"href":"https://github.com/BME-MIT-IET/Immutable-iet-2018/pull/3#discussion_r183241651"},"pull_request":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3"}},"in_reply_to_id":183241004},"pull_request":{"url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3","id":183277049,"html_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018/pull/3","diff_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018/pull/3.diff","patch_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018/pull/3.patch","issue_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/3","number":3,"state":"open","locked":false,"title":"Statikus analizis","user":{"login":"Tajtesz","id":26277351,"avatar_url":"https://avatars3.githubusercontent.com/u/26277351?v=4","gravatar_id":"","url":"https://api.github.com/users/Tajtesz","html_url":"https://github.com/Tajtesz","followers_url":"https://api.github.com/users/Tajtesz/followers","following_url":"https://api.github.com/users/Tajtesz/following{/other_user}","gists_url":"https://api.github.com/users/Tajtesz/gists{/gist_id}","starred_url":"https://api.github.com/users/Tajtesz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tajtesz/subscriptions","organizations_url":"https://api.github.com/users/Tajtesz/orgs","repos_url":"https://api.github.com/users/Tajtesz/repos","events_url":"https://api.github.com/users/Tajtesz/events{/privacy}","received_events_url":"https://api.github.com/users/Tajtesz/received_events","type":"User","site_admin":false},"body":"Elkészült. #1 issue-nál valamivel bővebb leírás található.","created_at":"2018-04-22T14:52:00Z","updated_at":"2018-04-22T15:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45581383c64ebfb969ba76f68f6a4a0e4ab70c83","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lbzs","id":15877373,"avatar_url":"https://avatars0.githubusercontent.com/u/15877373?v=4","gravatar_id":"","url":"https://api.github.com/users/lbzs","html_url":"https://github.com/lbzs","followers_url":"https://api.github.com/users/lbzs/followers","following_url":"https://api.github.com/users/lbzs/following{/other_user}","gists_url":"https://api.github.com/users/lbzs/gists{/gist_id}","starred_url":"https://api.github.com/users/lbzs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbzs/subscriptions","organizations_url":"https://api.github.com/users/lbzs/orgs","repos_url":"https://api.github.com/users/lbzs/repos","events_url":"https://api.github.com/users/lbzs/events{/privacy}","received_events_url":"https://api.github.com/users/lbzs/received_events","type":"User","site_admin":false},{"login":"birolaszlo96","id":25797006,"avatar_url":"https://avatars2.githubusercontent.com/u/25797006?v=4","gravatar_id":"","url":"https://api.github.com/users/birolaszlo96","html_url":"https://github.com/birolaszlo96","followers_url":"https://api.github.com/users/birolaszlo96/followers","following_url":"https://api.github.com/users/birolaszlo96/following{/other_user}","gists_url":"https://api.github.com/users/birolaszlo96/gists{/gist_id}","starred_url":"https://api.github.com/users/birolaszlo96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birolaszlo96/subscriptions","organizations_url":"https://api.github.com/users/birolaszlo96/orgs","repos_url":"https://api.github.com/users/birolaszlo96/repos","events_url":"https://api.github.com/users/birolaszlo96/events{/privacy}","received_events_url":"https://api.github.com/users/birolaszlo96/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3/commits","review_comments_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3/comments","review_comment_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/3/comments","statuses_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/statuses/2dcd95a1a2709ad190532773e9701df9157abb5b","head":{"label":"BME-MIT-IET:statikus-analizis","ref":"statikus-analizis","sha":"2dcd95a1a2709ad190532773e9701df9157abb5b","user":{"login":"BME-MIT-IET","id":37932412,"avatar_url":"https://avatars3.githubusercontent.com/u/37932412?v=4","gravatar_id":"","url":"https://api.github.com/users/BME-MIT-IET","html_url":"https://github.com/BME-MIT-IET","followers_url":"https://api.github.com/users/BME-MIT-IET/followers","following_url":"https://api.github.com/users/BME-MIT-IET/following{/other_user}","gists_url":"https://api.github.com/users/BME-MIT-IET/gists{/gist_id}","starred_url":"https://api.github.com/users/BME-MIT-IET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BME-MIT-IET/subscriptions","organizations_url":"https://api.github.com/users/BME-MIT-IET/orgs","repos_url":"https://api.github.com/users/BME-MIT-IET/repos","events_url":"https://api.github.com/users/BME-MIT-IET/events{/privacy}","received_events_url":"https://api.github.com/users/BME-MIT-IET/received_events","type":"Organization","site_admin":false},"repo":{"id":129397804,"name":"Immutable-iet-2018","full_name":"BME-MIT-IET/Immutable-iet-2018","owner":{"login":"BME-MIT-IET","id":37932412,"avatar_url":"https://avatars3.githubusercontent.com/u/37932412?v=4","gravatar_id":"","url":"https://api.github.com/users/BME-MIT-IET","html_url":"https://github.com/BME-MIT-IET","followers_url":"https://api.github.com/users/BME-MIT-IET/followers","following_url":"https://api.github.com/users/BME-MIT-IET/following{/other_user}","gists_url":"https://api.github.com/users/BME-MIT-IET/gists{/gist_id}","starred_url":"https://api.github.com/users/BME-MIT-IET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BME-MIT-IET/subscriptions","organizations_url":"https://api.github.com/users/BME-MIT-IET/orgs","repos_url":"https://api.github.com/users/BME-MIT-IET/repos","events_url":"https://api.github.com/users/BME-MIT-IET/events{/privacy}","received_events_url":"https://api.github.com/users/BME-MIT-IET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018","description":"iet-2018 created for Immutable","fork":false,"url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018","forks_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/forks","keys_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/teams","hooks_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/hooks","issue_events_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/events{/number}","events_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/events","assignees_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/assignees{/user}","branches_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/branches{/branch}","tags_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/tags","blobs_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/languages","stargazers_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/stargazers","contributors_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/contributors","subscribers_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/subscribers","subscription_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/subscription","commits_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/contents/{+path}","compare_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/merges","archive_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/downloads","issues_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues{/number}","pulls_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/labels{/name}","releases_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/releases{/id}","deployments_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/deployments","created_at":"2018-04-13T12:15:13Z","updated_at":"2018-04-22T10:02:59Z","pushed_at":"2018-04-22T14:52:01Z","git_url":"git://github.com/BME-MIT-IET/Immutable-iet-2018.git","ssh_url":"git@github.com:BME-MIT-IET/Immutable-iet-2018.git","clone_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018.git","svn_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018","homepage":null,"size":920,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"BME-MIT-IET:master","ref":"master","sha":"ccb1eac78f5ca69f6a8f847d9c065d9e4c7930a3","user":{"login":"BME-MIT-IET","id":37932412,"avatar_url":"https://avatars3.githubusercontent.com/u/37932412?v=4","gravatar_id":"","url":"https://api.github.com/users/BME-MIT-IET","html_url":"https://github.com/BME-MIT-IET","followers_url":"https://api.github.com/users/BME-MIT-IET/followers","following_url":"https://api.github.com/users/BME-MIT-IET/following{/other_user}","gists_url":"https://api.github.com/users/BME-MIT-IET/gists{/gist_id}","starred_url":"https://api.github.com/users/BME-MIT-IET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BME-MIT-IET/subscriptions","organizations_url":"https://api.github.com/users/BME-MIT-IET/orgs","repos_url":"https://api.github.com/users/BME-MIT-IET/repos","events_url":"https://api.github.com/users/BME-MIT-IET/events{/privacy}","received_events_url":"https://api.github.com/users/BME-MIT-IET/received_events","type":"Organization","site_admin":false},"repo":{"id":129397804,"name":"Immutable-iet-2018","full_name":"BME-MIT-IET/Immutable-iet-2018","owner":{"login":"BME-MIT-IET","id":37932412,"avatar_url":"https://avatars3.githubusercontent.com/u/37932412?v=4","gravatar_id":"","url":"https://api.github.com/users/BME-MIT-IET","html_url":"https://github.com/BME-MIT-IET","followers_url":"https://api.github.com/users/BME-MIT-IET/followers","following_url":"https://api.github.com/users/BME-MIT-IET/following{/other_user}","gists_url":"https://api.github.com/users/BME-MIT-IET/gists{/gist_id}","starred_url":"https://api.github.com/users/BME-MIT-IET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BME-MIT-IET/subscriptions","organizations_url":"https://api.github.com/users/BME-MIT-IET/orgs","repos_url":"https://api.github.com/users/BME-MIT-IET/repos","events_url":"https://api.github.com/users/BME-MIT-IET/events{/privacy}","received_events_url":"https://api.github.com/users/BME-MIT-IET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018","description":"iet-2018 created for Immutable","fork":false,"url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018","forks_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/forks","keys_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/teams","hooks_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/hooks","issue_events_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/events{/number}","events_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/events","assignees_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/assignees{/user}","branches_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/branches{/branch}","tags_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/tags","blobs_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/languages","stargazers_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/stargazers","contributors_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/contributors","subscribers_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/subscribers","subscription_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/subscription","commits_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/contents/{+path}","compare_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/merges","archive_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/downloads","issues_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues{/number}","pulls_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/labels{/name}","releases_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/releases{/id}","deployments_url":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/deployments","created_at":"2018-04-13T12:15:13Z","updated_at":"2018-04-22T10:02:59Z","pushed_at":"2018-04-22T14:52:01Z","git_url":"git://github.com/BME-MIT-IET/Immutable-iet-2018.git","ssh_url":"git@github.com:BME-MIT-IET/Immutable-iet-2018.git","clone_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018.git","svn_url":"https://github.com/BME-MIT-IET/Immutable-iet-2018","homepage":null,"size":920,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3"},"html":{"href":"https://github.com/BME-MIT-IET/Immutable-iet-2018/pull/3"},"issue":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/3"},"comments":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/BME-MIT-IET/Immutable-iet-2018/statuses/2dcd95a1a2709ad190532773e9701df9157abb5b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Tajtesz"}}