{"action":"created","comment":{"url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/comments/234040278","pull_request_review_id":175596535,"id":234040278,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDA0MDI3OA==","diff_hunk":"@@ -166,4 +166,50 @@ object ListExercises {\n     */\n   def youngestPerson(persons: List[Person]): Person = ???\n \n+  private[level02] val peopleList =\n+    List(Person(\"Matt Murdock\", 30),\n+         Person(\"Karen Page\", 27),\n+         Person(\"Franklin 'Foggy' Nelson\", 31),\n+         Person(\"Claire Temple\", 32),\n+         Person(\"Wilson Fisk\", 42),\n+         Person(\"Elektra Natchios\", 29)\n+     )\n+\n+  /**\n+    * Return a list of pairs of a Person and their position in the `peopleList`.\n+    * The position should be a 1-based index.\n+    *\n+    * Hint: Use `zipWithIndex`\n+    */\n+  def personWithIndex(people: List[Person]): List[(Person, Int)] = ???\n+\n+  /**\n+    * Log every nth person from the `peopleList` given an index `n`.\n+    *\n+    * scala> showEveryNthPerson(2, peopleList)\n+    * = List(\"Karen Page is 27 years old\", \"Claire Temple is 32 years old\")\n+    *","path":"src/main/scala/fundamentals/level02/ListExercises.scala","position":26,"original_position":26,"commit_id":"715adad5134896c56b64d2401697310dc56c6474","original_commit_id":"715adad5134896c56b64d2401697310dc56c6474","user":{"login":"ashokkumar","id":153482,"node_id":"MDQ6VXNlcjE1MzQ4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/153482?v=4","gravatar_id":"","url":"https://api.github.com/users/ashokkumar","html_url":"https://github.com/ashokkumar","followers_url":"https://api.github.com/users/ashokkumar/followers","following_url":"https://api.github.com/users/ashokkumar/following{/other_user}","gists_url":"https://api.github.com/users/ashokkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashokkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashokkumar/subscriptions","organizations_url":"https://api.github.com/users/ashokkumar/orgs","repos_url":"https://api.github.com/users/ashokkumar/repos","events_url":"https://api.github.com/users/ashokkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ashokkumar/received_events","type":"User","site_admin":false},"body":"I think the output would be `List(\"Karen Page is 27 years old\", \"Claire Temple is 32 years old\",\"Elektra Natchios is 29 years old\")`","created_at":"2018-11-15T23:00:27Z","updated_at":"2018-11-15T23:00:27Z","html_url":"https://github.com/wjlow/intro-to-scala/pull/150#discussion_r234040278","pull_request_url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/comments/234040278"},"html":{"href":"https://github.com/wjlow/intro-to-scala/pull/150#discussion_r234040278"},"pull_request":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150","id":212588161,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNTg4MTYx","html_url":"https://github.com/wjlow/intro-to-scala/pull/150","diff_url":"https://github.com/wjlow/intro-to-scala/pull/150.diff","patch_url":"https://github.com/wjlow/intro-to-scala/pull/150.patch","issue_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues/150","number":150,"state":"open","locked":false,"title":"added updated version of showEveryNthPerson","user":{"login":"sanjivsahayamrea","id":29850472,"node_id":"MDQ6VXNlcjI5ODUwNDcy","avatar_url":"https://avatars2.githubusercontent.com/u/29850472?v=4","gravatar_id":"","url":"https://api.github.com/users/sanjivsahayamrea","html_url":"https://github.com/sanjivsahayamrea","followers_url":"https://api.github.com/users/sanjivsahayamrea/followers","following_url":"https://api.github.com/users/sanjivsahayamrea/following{/other_user}","gists_url":"https://api.github.com/users/sanjivsahayamrea/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjivsahayamrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjivsahayamrea/subscriptions","organizations_url":"https://api.github.com/users/sanjivsahayamrea/orgs","repos_url":"https://api.github.com/users/sanjivsahayamrea/repos","events_url":"https://api.github.com/users/sanjivsahayamrea/events{/privacy}","received_events_url":"https://api.github.com/users/sanjivsahayamrea/received_events","type":"User","site_admin":false},"body":"So I've added some extra validation rules and beefed up the tests to cover almost all cases.\r\n\r\n<img src=\"https://user-images.githubusercontent.com/29850472/44955470-37231000-aef7-11e8-838c-0d06f298195a.gif\" width=\"100%\" />\r\n","created_at":"2018-09-02T11:31:21Z","updated_at":"2018-11-15T23:00:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6da06be5085885c52175b0c684726375444e8d9a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":844596045,"node_id":"MDU6TGFiZWw4NDQ1OTYwNDU=","url":"https://api.github.com/repos/wjlow/intro-to-scala/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":1043846697,"node_id":"MDU6TGFiZWwxMDQzODQ2Njk3","url":"https://api.github.com/repos/wjlow/intro-to-scala/labels/hold","name":"hold","color":"ba7828","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150/commits","review_comments_url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150/comments","review_comment_url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues/150/comments","statuses_url":"https://api.github.com/repos/wjlow/intro-to-scala/statuses/715adad5134896c56b64d2401697310dc56c6474","head":{"label":"wjlow:modified-showEveryNthPerson","ref":"modified-showEveryNthPerson","sha":"715adad5134896c56b64d2401697310dc56c6474","user":{"login":"wjlow","id":368630,"node_id":"MDQ6VXNlcjM2ODYzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/368630?v=4","gravatar_id":"","url":"https://api.github.com/users/wjlow","html_url":"https://github.com/wjlow","followers_url":"https://api.github.com/users/wjlow/followers","following_url":"https://api.github.com/users/wjlow/following{/other_user}","gists_url":"https://api.github.com/users/wjlow/gists{/gist_id}","starred_url":"https://api.github.com/users/wjlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjlow/subscriptions","organizations_url":"https://api.github.com/users/wjlow/orgs","repos_url":"https://api.github.com/users/wjlow/repos","events_url":"https://api.github.com/users/wjlow/events{/privacy}","received_events_url":"https://api.github.com/users/wjlow/received_events","type":"User","site_admin":false},"repo":{"id":122430187,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI0MzAxODc=","name":"intro-to-scala","full_name":"wjlow/intro-to-scala","private":false,"owner":{"login":"wjlow","id":368630,"node_id":"MDQ6VXNlcjM2ODYzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/368630?v=4","gravatar_id":"","url":"https://api.github.com/users/wjlow","html_url":"https://github.com/wjlow","followers_url":"https://api.github.com/users/wjlow/followers","following_url":"https://api.github.com/users/wjlow/following{/other_user}","gists_url":"https://api.github.com/users/wjlow/gists{/gist_id}","starred_url":"https://api.github.com/users/wjlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjlow/subscriptions","organizations_url":"https://api.github.com/users/wjlow/orgs","repos_url":"https://api.github.com/users/wjlow/repos","events_url":"https://api.github.com/users/wjlow/events{/privacy}","received_events_url":"https://api.github.com/users/wjlow/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wjlow/intro-to-scala","description":null,"fork":false,"url":"https://api.github.com/repos/wjlow/intro-to-scala","forks_url":"https://api.github.com/repos/wjlow/intro-to-scala/forks","keys_url":"https://api.github.com/repos/wjlow/intro-to-scala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wjlow/intro-to-scala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wjlow/intro-to-scala/teams","hooks_url":"https://api.github.com/repos/wjlow/intro-to-scala/hooks","issue_events_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues/events{/number}","events_url":"https://api.github.com/repos/wjlow/intro-to-scala/events","assignees_url":"https://api.github.com/repos/wjlow/intro-to-scala/assignees{/user}","branches_url":"https://api.github.com/repos/wjlow/intro-to-scala/branches{/branch}","tags_url":"https://api.github.com/repos/wjlow/intro-to-scala/tags","blobs_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/refs{/sha}","trees_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wjlow/intro-to-scala/statuses/{sha}","languages_url":"https://api.github.com/repos/wjlow/intro-to-scala/languages","stargazers_url":"https://api.github.com/repos/wjlow/intro-to-scala/stargazers","contributors_url":"https://api.github.com/repos/wjlow/intro-to-scala/contributors","subscribers_url":"https://api.github.com/repos/wjlow/intro-to-scala/subscribers","subscription_url":"https://api.github.com/repos/wjlow/intro-to-scala/subscription","commits_url":"https://api.github.com/repos/wjlow/intro-to-scala/commits{/sha}","git_commits_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/commits{/sha}","comments_url":"https://api.github.com/repos/wjlow/intro-to-scala/comments{/number}","issue_comment_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues/comments{/number}","contents_url":"https://api.github.com/repos/wjlow/intro-to-scala/contents/{+path}","compare_url":"https://api.github.com/repos/wjlow/intro-to-scala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wjlow/intro-to-scala/merges","archive_url":"https://api.github.com/repos/wjlow/intro-to-scala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wjlow/intro-to-scala/downloads","issues_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues{/number}","pulls_url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls{/number}","milestones_url":"https://api.github.com/repos/wjlow/intro-to-scala/milestones{/number}","notifications_url":"https://api.github.com/repos/wjlow/intro-to-scala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wjlow/intro-to-scala/labels{/name}","releases_url":"https://api.github.com/repos/wjlow/intro-to-scala/releases{/id}","deployments_url":"https://api.github.com/repos/wjlow/intro-to-scala/deployments","created_at":"2018-02-22T04:22:38Z","updated_at":"2018-11-15T00:38:19Z","pushed_at":"2018-11-15T00:38:17Z","git_url":"git://github.com/wjlow/intro-to-scala.git","ssh_url":"git@github.com:wjlow/intro-to-scala.git","clone_url":"https://github.com/wjlow/intro-to-scala.git","svn_url":"https://github.com/wjlow/intro-to-scala","homepage":null,"size":3035,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":20,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"wjlow:master","ref":"master","sha":"45cdd6b0f0ec117156a2f459990f5157b24f662f","user":{"login":"wjlow","id":368630,"node_id":"MDQ6VXNlcjM2ODYzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/368630?v=4","gravatar_id":"","url":"https://api.github.com/users/wjlow","html_url":"https://github.com/wjlow","followers_url":"https://api.github.com/users/wjlow/followers","following_url":"https://api.github.com/users/wjlow/following{/other_user}","gists_url":"https://api.github.com/users/wjlow/gists{/gist_id}","starred_url":"https://api.github.com/users/wjlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjlow/subscriptions","organizations_url":"https://api.github.com/users/wjlow/orgs","repos_url":"https://api.github.com/users/wjlow/repos","events_url":"https://api.github.com/users/wjlow/events{/privacy}","received_events_url":"https://api.github.com/users/wjlow/received_events","type":"User","site_admin":false},"repo":{"id":122430187,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI0MzAxODc=","name":"intro-to-scala","full_name":"wjlow/intro-to-scala","private":false,"owner":{"login":"wjlow","id":368630,"node_id":"MDQ6VXNlcjM2ODYzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/368630?v=4","gravatar_id":"","url":"https://api.github.com/users/wjlow","html_url":"https://github.com/wjlow","followers_url":"https://api.github.com/users/wjlow/followers","following_url":"https://api.github.com/users/wjlow/following{/other_user}","gists_url":"https://api.github.com/users/wjlow/gists{/gist_id}","starred_url":"https://api.github.com/users/wjlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjlow/subscriptions","organizations_url":"https://api.github.com/users/wjlow/orgs","repos_url":"https://api.github.com/users/wjlow/repos","events_url":"https://api.github.com/users/wjlow/events{/privacy}","received_events_url":"https://api.github.com/users/wjlow/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wjlow/intro-to-scala","description":null,"fork":false,"url":"https://api.github.com/repos/wjlow/intro-to-scala","forks_url":"https://api.github.com/repos/wjlow/intro-to-scala/forks","keys_url":"https://api.github.com/repos/wjlow/intro-to-scala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wjlow/intro-to-scala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wjlow/intro-to-scala/teams","hooks_url":"https://api.github.com/repos/wjlow/intro-to-scala/hooks","issue_events_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues/events{/number}","events_url":"https://api.github.com/repos/wjlow/intro-to-scala/events","assignees_url":"https://api.github.com/repos/wjlow/intro-to-scala/assignees{/user}","branches_url":"https://api.github.com/repos/wjlow/intro-to-scala/branches{/branch}","tags_url":"https://api.github.com/repos/wjlow/intro-to-scala/tags","blobs_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/refs{/sha}","trees_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wjlow/intro-to-scala/statuses/{sha}","languages_url":"https://api.github.com/repos/wjlow/intro-to-scala/languages","stargazers_url":"https://api.github.com/repos/wjlow/intro-to-scala/stargazers","contributors_url":"https://api.github.com/repos/wjlow/intro-to-scala/contributors","subscribers_url":"https://api.github.com/repos/wjlow/intro-to-scala/subscribers","subscription_url":"https://api.github.com/repos/wjlow/intro-to-scala/subscription","commits_url":"https://api.github.com/repos/wjlow/intro-to-scala/commits{/sha}","git_commits_url":"https://api.github.com/repos/wjlow/intro-to-scala/git/commits{/sha}","comments_url":"https://api.github.com/repos/wjlow/intro-to-scala/comments{/number}","issue_comment_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues/comments{/number}","contents_url":"https://api.github.com/repos/wjlow/intro-to-scala/contents/{+path}","compare_url":"https://api.github.com/repos/wjlow/intro-to-scala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wjlow/intro-to-scala/merges","archive_url":"https://api.github.com/repos/wjlow/intro-to-scala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wjlow/intro-to-scala/downloads","issues_url":"https://api.github.com/repos/wjlow/intro-to-scala/issues{/number}","pulls_url":"https://api.github.com/repos/wjlow/intro-to-scala/pulls{/number}","milestones_url":"https://api.github.com/repos/wjlow/intro-to-scala/milestones{/number}","notifications_url":"https://api.github.com/repos/wjlow/intro-to-scala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wjlow/intro-to-scala/labels{/name}","releases_url":"https://api.github.com/repos/wjlow/intro-to-scala/releases{/id}","deployments_url":"https://api.github.com/repos/wjlow/intro-to-scala/deployments","created_at":"2018-02-22T04:22:38Z","updated_at":"2018-11-15T00:38:19Z","pushed_at":"2018-11-15T00:38:17Z","git_url":"git://github.com/wjlow/intro-to-scala.git","ssh_url":"git@github.com:wjlow/intro-to-scala.git","clone_url":"https://github.com/wjlow/intro-to-scala.git","svn_url":"https://github.com/wjlow/intro-to-scala","homepage":null,"size":3035,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":20,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150"},"html":{"href":"https://github.com/wjlow/intro-to-scala/pull/150"},"issue":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/issues/150"},"comments":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/wjlow/intro-to-scala/statuses/715adad5134896c56b64d2401697310dc56c6474"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ashokkumar"}}