{"action":"created","comment":{"url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/comments/208230960","pull_request_review_id":143995699,"id":208230960,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODIzMDk2MA==","diff_hunk":"@@ -118,34 +116,74 @@ R.compose(\n   score => +score\n )(task7_payload.payloadString);\n \n-// given:\n-// const n = 2\n-// produce:\n-// [{score: 2}, {score: 1}]\n+/* #########################################################################\n+ Task 8 :\n+      input: const n = 2\n+      output: [{score: 2}, {score: 1}] \n+############################################################################ */\n+const f = n => (n <= 0 ? false : [R.objOf(\"score\")(n), n - 1]);\n+R.unfold(f, 2);\n+\n+/* #########################################################################\n+ Task 9:\n+      input: {noise: '/factory/1/noise', temperature: '/factory/1/temperature'}\n+      output: {'/factory/1/noise': [], '/factory/1/temperature': []}\n+############################################################################ */\n+\n+R.zipObj(R.values(input), R.repeat([], 2));\n \n // {noise: '/factory/1/noise', temperature: '/factory/1/temperature'}\n // to {'/factory/1/noise': [], '/factory/1/temperature': []}\n \n-// given:\n-//\n-// {showDialog: false, buttonDisabled: false, slides: []}\n-// {showDialog: true, buttonDisabled: true, slides: [{id: 1, name: 'programming'}]}\n-//\n-// produce:\n-// {showDialog: false, buttonDisabled: false, slides: [{id: 1, name: 'programming'}]}\n+/* #########################################################################\n+ Task 10: \n+   input:\n+   {showDialog: false, buttonDisabled: false, slides: []}\n+   {showDialog: true, buttonDisabled: true, slides: [{id: 1, name: 'programming'}]}\n+\n+   output:\n+   {showDialog: false, buttonDisabled: false, slides: [{id: 1, name: 'programming'}]}\n+############################################################################ */\n+// skip\n \n-// {connecting: true, connected: false}\n-// to {connecting: false, connected: true}\n+/* #########################################################################\n+ Task 11:\n+   input: {connecting: true, connected: false}\n+   output: {connecting: false, connected: true}\n+############################################################################ */\n \n-// given:\n-// const sensorNames = ['noise', 'temperature']\n-// const sensorValues = [20, 30]\n-// const airQualitySensorData = {airQuality: 40}\n-// produce:\n-// {noise: 20, temperature: 30, airQuality: 40}\n+R.evolve({","path":"week4/solutions.js","position":null,"original_position":80,"commit_id":"82c0f99da514984666b01511656e6c87e2e71828","original_commit_id":"82c0f99da514984666b01511656e6c87e2e71828","user":{"login":"exiadbq","id":4665929,"node_id":"MDQ6VXNlcjQ2NjU5Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/4665929?v=4","gravatar_id":"","url":"https://api.github.com/users/exiadbq","html_url":"https://github.com/exiadbq","followers_url":"https://api.github.com/users/exiadbq/followers","following_url":"https://api.github.com/users/exiadbq/following{/other_user}","gists_url":"https://api.github.com/users/exiadbq/gists{/gist_id}","starred_url":"https://api.github.com/users/exiadbq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exiadbq/subscriptions","organizations_url":"https://api.github.com/users/exiadbq/orgs","repos_url":"https://api.github.com/users/exiadbq/repos","events_url":"https://api.github.com/users/exiadbq/events{/privacy}","received_events_url":"https://api.github.com/users/exiadbq/received_events","type":"User","site_admin":false},"body":"const input11 = {connecting: true, connected: false}\r\n// to {connecting: false, connected: true}\r\nmapObjIndexed((v, k) => !v)(input11)","created_at":"2018-08-07T13:33:11Z","updated_at":"2018-08-07T13:33:11Z","html_url":"https://github.com/shineli1984/jsfp-course/pull/1#discussion_r208230960","pull_request_url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/comments/208230960"},"html":{"href":"https://github.com/shineli1984/jsfp-course/pull/1#discussion_r208230960"},"pull_request":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1","id":203048120,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMDQ4MTIw","html_url":"https://github.com/shineli1984/jsfp-course/pull/1","diff_url":"https://github.com/shineli1984/jsfp-course/pull/1.diff","patch_url":"https://github.com/shineli1984/jsfp-course/pull/1.patch","issue_url":"https://api.github.com/repos/shineli1984/jsfp-course/issues/1","number":1,"state":"open","locked":false,"title":"Week4-solution-task1-task7","user":{"login":"cht8687","id":4587603,"node_id":"MDQ6VXNlcjQ1ODc2MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/4587603?v=4","gravatar_id":"","url":"https://api.github.com/users/cht8687","html_url":"https://github.com/cht8687","followers_url":"https://api.github.com/users/cht8687/followers","following_url":"https://api.github.com/users/cht8687/following{/other_user}","gists_url":"https://api.github.com/users/cht8687/gists{/gist_id}","starred_url":"https://api.github.com/users/cht8687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cht8687/subscriptions","organizations_url":"https://api.github.com/users/cht8687/orgs","repos_url":"https://api.github.com/users/cht8687/repos","events_url":"https://api.github.com/users/cht8687/events{/privacy}","received_events_url":"https://api.github.com/users/cht8687/received_events","type":"User","site_admin":false},"body":"@shineli1984 @ttma1046 @ddvkid @stevemao","created_at":"2018-07-22T09:19:30Z","updated_at":"2018-08-07T13:33:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac5d8364fe58a09f1f04a0274e5506042bbcc699","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1/commits","review_comments_url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1/comments","review_comment_url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shineli1984/jsfp-course/issues/1/comments","statuses_url":"https://api.github.com/repos/shineli1984/jsfp-course/statuses/82c0f99da514984666b01511656e6c87e2e71828","head":{"label":"cht8687:master","ref":"master","sha":"82c0f99da514984666b01511656e6c87e2e71828","user":{"login":"cht8687","id":4587603,"node_id":"MDQ6VXNlcjQ1ODc2MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/4587603?v=4","gravatar_id":"","url":"https://api.github.com/users/cht8687","html_url":"https://github.com/cht8687","followers_url":"https://api.github.com/users/cht8687/followers","following_url":"https://api.github.com/users/cht8687/following{/other_user}","gists_url":"https://api.github.com/users/cht8687/gists{/gist_id}","starred_url":"https://api.github.com/users/cht8687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cht8687/subscriptions","organizations_url":"https://api.github.com/users/cht8687/orgs","repos_url":"https://api.github.com/users/cht8687/repos","events_url":"https://api.github.com/users/cht8687/events{/privacy}","received_events_url":"https://api.github.com/users/cht8687/received_events","type":"User","site_admin":false},"repo":{"id":141875656,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE4NzU2NTY=","name":"jsfp-course","full_name":"cht8687/jsfp-course","owner":{"login":"cht8687","id":4587603,"node_id":"MDQ6VXNlcjQ1ODc2MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/4587603?v=4","gravatar_id":"","url":"https://api.github.com/users/cht8687","html_url":"https://github.com/cht8687","followers_url":"https://api.github.com/users/cht8687/followers","following_url":"https://api.github.com/users/cht8687/following{/other_user}","gists_url":"https://api.github.com/users/cht8687/gists{/gist_id}","starred_url":"https://api.github.com/users/cht8687/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cht8687/subscriptions","organizations_url":"https://api.github.com/users/cht8687/orgs","repos_url":"https://api.github.com/users/cht8687/repos","events_url":"https://api.github.com/users/cht8687/events{/privacy}","received_events_url":"https://api.github.com/users/cht8687/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cht8687/jsfp-course","description":null,"fork":true,"url":"https://api.github.com/repos/cht8687/jsfp-course","forks_url":"https://api.github.com/repos/cht8687/jsfp-course/forks","keys_url":"https://api.github.com/repos/cht8687/jsfp-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cht8687/jsfp-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cht8687/jsfp-course/teams","hooks_url":"https://api.github.com/repos/cht8687/jsfp-course/hooks","issue_events_url":"https://api.github.com/repos/cht8687/jsfp-course/issues/events{/number}","events_url":"https://api.github.com/repos/cht8687/jsfp-course/events","assignees_url":"https://api.github.com/repos/cht8687/jsfp-course/assignees{/user}","branches_url":"https://api.github.com/repos/cht8687/jsfp-course/branches{/branch}","tags_url":"https://api.github.com/repos/cht8687/jsfp-course/tags","blobs_url":"https://api.github.com/repos/cht8687/jsfp-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cht8687/jsfp-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cht8687/jsfp-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/cht8687/jsfp-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cht8687/jsfp-course/statuses/{sha}","languages_url":"https://api.github.com/repos/cht8687/jsfp-course/languages","stargazers_url":"https://api.github.com/repos/cht8687/jsfp-course/stargazers","contributors_url":"https://api.github.com/repos/cht8687/jsfp-course/contributors","subscribers_url":"https://api.github.com/repos/cht8687/jsfp-course/subscribers","subscription_url":"https://api.github.com/repos/cht8687/jsfp-course/subscription","commits_url":"https://api.github.com/repos/cht8687/jsfp-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/cht8687/jsfp-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/cht8687/jsfp-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/cht8687/jsfp-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/cht8687/jsfp-course/contents/{+path}","compare_url":"https://api.github.com/repos/cht8687/jsfp-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cht8687/jsfp-course/merges","archive_url":"https://api.github.com/repos/cht8687/jsfp-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cht8687/jsfp-course/downloads","issues_url":"https://api.github.com/repos/cht8687/jsfp-course/issues{/number}","pulls_url":"https://api.github.com/repos/cht8687/jsfp-course/pulls{/number}","milestones_url":"https://api.github.com/repos/cht8687/jsfp-course/milestones{/number}","notifications_url":"https://api.github.com/repos/cht8687/jsfp-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cht8687/jsfp-course/labels{/name}","releases_url":"https://api.github.com/repos/cht8687/jsfp-course/releases{/id}","deployments_url":"https://api.github.com/repos/cht8687/jsfp-course/deployments","created_at":"2018-07-22T07:39:08Z","updated_at":"2018-08-05T07:02:10Z","pushed_at":"2018-08-05T07:02:07Z","git_url":"git://github.com/cht8687/jsfp-course.git","ssh_url":"git@github.com:cht8687/jsfp-course.git","clone_url":"https://github.com/cht8687/jsfp-course.git","svn_url":"https://github.com/cht8687/jsfp-course","homepage":null,"size":56,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"shineli1984:master","ref":"master","sha":"3cd5224d4975cb6d76f1b1236b70c8b44949a9bd","user":{"login":"shineli1984","id":13862758,"node_id":"MDQ6VXNlcjEzODYyNzU4","avatar_url":"https://avatars1.githubusercontent.com/u/13862758?v=4","gravatar_id":"","url":"https://api.github.com/users/shineli1984","html_url":"https://github.com/shineli1984","followers_url":"https://api.github.com/users/shineli1984/followers","following_url":"https://api.github.com/users/shineli1984/following{/other_user}","gists_url":"https://api.github.com/users/shineli1984/gists{/gist_id}","starred_url":"https://api.github.com/users/shineli1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shineli1984/subscriptions","organizations_url":"https://api.github.com/users/shineli1984/orgs","repos_url":"https://api.github.com/users/shineli1984/repos","events_url":"https://api.github.com/users/shineli1984/events{/privacy}","received_events_url":"https://api.github.com/users/shineli1984/received_events","type":"User","site_admin":false},"repo":{"id":139293601,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkyOTM2MDE=","name":"jsfp-course","full_name":"shineli1984/jsfp-course","owner":{"login":"shineli1984","id":13862758,"node_id":"MDQ6VXNlcjEzODYyNzU4","avatar_url":"https://avatars1.githubusercontent.com/u/13862758?v=4","gravatar_id":"","url":"https://api.github.com/users/shineli1984","html_url":"https://github.com/shineli1984","followers_url":"https://api.github.com/users/shineli1984/followers","following_url":"https://api.github.com/users/shineli1984/following{/other_user}","gists_url":"https://api.github.com/users/shineli1984/gists{/gist_id}","starred_url":"https://api.github.com/users/shineli1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shineli1984/subscriptions","organizations_url":"https://api.github.com/users/shineli1984/orgs","repos_url":"https://api.github.com/users/shineli1984/repos","events_url":"https://api.github.com/users/shineli1984/events{/privacy}","received_events_url":"https://api.github.com/users/shineli1984/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shineli1984/jsfp-course","description":null,"fork":false,"url":"https://api.github.com/repos/shineli1984/jsfp-course","forks_url":"https://api.github.com/repos/shineli1984/jsfp-course/forks","keys_url":"https://api.github.com/repos/shineli1984/jsfp-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shineli1984/jsfp-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shineli1984/jsfp-course/teams","hooks_url":"https://api.github.com/repos/shineli1984/jsfp-course/hooks","issue_events_url":"https://api.github.com/repos/shineli1984/jsfp-course/issues/events{/number}","events_url":"https://api.github.com/repos/shineli1984/jsfp-course/events","assignees_url":"https://api.github.com/repos/shineli1984/jsfp-course/assignees{/user}","branches_url":"https://api.github.com/repos/shineli1984/jsfp-course/branches{/branch}","tags_url":"https://api.github.com/repos/shineli1984/jsfp-course/tags","blobs_url":"https://api.github.com/repos/shineli1984/jsfp-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shineli1984/jsfp-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shineli1984/jsfp-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/shineli1984/jsfp-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shineli1984/jsfp-course/statuses/{sha}","languages_url":"https://api.github.com/repos/shineli1984/jsfp-course/languages","stargazers_url":"https://api.github.com/repos/shineli1984/jsfp-course/stargazers","contributors_url":"https://api.github.com/repos/shineli1984/jsfp-course/contributors","subscribers_url":"https://api.github.com/repos/shineli1984/jsfp-course/subscribers","subscription_url":"https://api.github.com/repos/shineli1984/jsfp-course/subscription","commits_url":"https://api.github.com/repos/shineli1984/jsfp-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/shineli1984/jsfp-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/shineli1984/jsfp-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/shineli1984/jsfp-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/shineli1984/jsfp-course/contents/{+path}","compare_url":"https://api.github.com/repos/shineli1984/jsfp-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shineli1984/jsfp-course/merges","archive_url":"https://api.github.com/repos/shineli1984/jsfp-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shineli1984/jsfp-course/downloads","issues_url":"https://api.github.com/repos/shineli1984/jsfp-course/issues{/number}","pulls_url":"https://api.github.com/repos/shineli1984/jsfp-course/pulls{/number}","milestones_url":"https://api.github.com/repos/shineli1984/jsfp-course/milestones{/number}","notifications_url":"https://api.github.com/repos/shineli1984/jsfp-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shineli1984/jsfp-course/labels{/name}","releases_url":"https://api.github.com/repos/shineli1984/jsfp-course/releases{/id}","deployments_url":"https://api.github.com/repos/shineli1984/jsfp-course/deployments","created_at":"2018-07-01T02:06:48Z","updated_at":"2018-07-22T12:11:57Z","pushed_at":"2018-08-05T07:02:09Z","git_url":"git://github.com/shineli1984/jsfp-course.git","ssh_url":"git@github.com:shineli1984/jsfp-course.git","clone_url":"https://github.com/shineli1984/jsfp-course.git","svn_url":"https://github.com/shineli1984/jsfp-course","homepage":null,"size":22,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1"},"html":{"href":"https://github.com/shineli1984/jsfp-course/pull/1"},"issue":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/issues/1"},"comments":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/shineli1984/jsfp-course/statuses/82c0f99da514984666b01511656e6c87e2e71828"}},"author_association":"NONE"}}
{"actor":{"display_login":"exiadbq"}}