{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/93023464","pull_request_review_id":13543490,"id":93023464,"diff_hunk":"@@ -38,32 +38,57 @@ interface Matrix<E> {\n  * height = высота, width = ширина, e = чем заполнить элементы.\n  * Бросить исключение IllegalArgumentException, если height или width <= 0.\n  */\n-fun <E> createMatrix(height: Int, width: Int, e: E): Matrix<E> = TODO()\n+fun <E> createMatrix(height: Int, width: Int, e: E): Matrix<E> {\n+    if ((height <= 0) || (width <= 0)) throw IllegalArgumentException()\n+    val matrix = MatrixImpl(height, width, e)\n+    for (row in 0..matrix.height - 1)\n+        for (column in 0..matrix.width - 1)\n+            matrix[row, column] = e","path":"src/lesson7/task1/Matrix.kt","position":10,"original_position":10,"commit_id":"0415c574860bb48fd527603c6a683663b2474dcf","original_commit_id":"ef51af24f0a6d8c5ab3ceba214dc60235f8c9842","user":{"login":"elkaties","id":22023223,"avatar_url":"https://avatars.githubusercontent.com/u/22023223?v=3","gravatar_id":"","url":"https://api.github.com/users/elkaties","html_url":"https://github.com/elkaties","followers_url":"https://api.github.com/users/elkaties/followers","following_url":"https://api.github.com/users/elkaties/following{/other_user}","gists_url":"https://api.github.com/users/elkaties/gists{/gist_id}","starred_url":"https://api.github.com/users/elkaties/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elkaties/subscriptions","organizations_url":"https://api.github.com/users/elkaties/orgs","repos_url":"https://api.github.com/users/elkaties/repos","events_url":"https://api.github.com/users/elkaties/events{/privacy}","received_events_url":"https://api.github.com/users/elkaties/received_events","type":"User","site_admin":false},"body":"Он все равно ругается, если выкинуть заполнение матрицы","created_at":"2016-12-19T12:38:49Z","updated_at":"2016-12-19T12:38:49Z","html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/255#discussion_r93023464","pull_request_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/93023464"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/255#discussion_r93023464"},"pull_request":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255","id":98490885,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/255","diff_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/255.diff","patch_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/255.patch","issue_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/255","number":255,"state":"open","locked":false,"title":"Lesson 7 t1, t2","user":{"login":"elkaties","id":22023223,"avatar_url":"https://avatars.githubusercontent.com/u/22023223?v=3","gravatar_id":"","url":"https://api.github.com/users/elkaties","html_url":"https://github.com/elkaties","followers_url":"https://api.github.com/users/elkaties/followers","following_url":"https://api.github.com/users/elkaties/following{/other_user}","gists_url":"https://api.github.com/users/elkaties/gists{/gist_id}","starred_url":"https://api.github.com/users/elkaties/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elkaties/subscriptions","organizations_url":"https://api.github.com/users/elkaties/orgs","repos_url":"https://api.github.com/users/elkaties/repos","events_url":"https://api.github.com/users/elkaties/events{/privacy}","received_events_url":"https://api.github.com/users/elkaties/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-18T22:55:10Z","updated_at":"2016-12-19T12:38:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3939dc17d2e2560fe5247155c9a41a7924729f5a","assignee":{"login":"mglukhikh","id":1127631,"avatar_url":"https://avatars.githubusercontent.com/u/1127631?v=3","gravatar_id":"","url":"https://api.github.com/users/mglukhikh","html_url":"https://github.com/mglukhikh","followers_url":"https://api.github.com/users/mglukhikh/followers","following_url":"https://api.github.com/users/mglukhikh/following{/other_user}","gists_url":"https://api.github.com/users/mglukhikh/gists{/gist_id}","starred_url":"https://api.github.com/users/mglukhikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglukhikh/subscriptions","organizations_url":"https://api.github.com/users/mglukhikh/orgs","repos_url":"https://api.github.com/users/mglukhikh/repos","events_url":"https://api.github.com/users/mglukhikh/events{/privacy}","received_events_url":"https://api.github.com/users/mglukhikh/received_events","type":"User","site_admin":false},"assignees":[{"login":"mglukhikh","id":1127631,"avatar_url":"https://avatars.githubusercontent.com/u/1127631?v=3","gravatar_id":"","url":"https://api.github.com/users/mglukhikh","html_url":"https://github.com/mglukhikh","followers_url":"https://api.github.com/users/mglukhikh/followers","following_url":"https://api.github.com/users/mglukhikh/following{/other_user}","gists_url":"https://api.github.com/users/mglukhikh/gists{/gist_id}","starred_url":"https://api.github.com/users/mglukhikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglukhikh/subscriptions","organizations_url":"https://api.github.com/users/mglukhikh/orgs","repos_url":"https://api.github.com/users/mglukhikh/repos","events_url":"https://api.github.com/users/mglukhikh/events{/privacy}","received_events_url":"https://api.github.com/users/mglukhikh/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255/commits","review_comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255/comments","review_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/255/comments","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/0415c574860bb48fd527603c6a683663b2474dcf","head":{"label":"elkaties:master","ref":"master","sha":"0415c574860bb48fd527603c6a683663b2474dcf","user":{"login":"elkaties","id":22023223,"avatar_url":"https://avatars.githubusercontent.com/u/22023223?v=3","gravatar_id":"","url":"https://api.github.com/users/elkaties","html_url":"https://github.com/elkaties","followers_url":"https://api.github.com/users/elkaties/followers","following_url":"https://api.github.com/users/elkaties/following{/other_user}","gists_url":"https://api.github.com/users/elkaties/gists{/gist_id}","starred_url":"https://api.github.com/users/elkaties/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elkaties/subscriptions","organizations_url":"https://api.github.com/users/elkaties/orgs","repos_url":"https://api.github.com/users/elkaties/repos","events_url":"https://api.github.com/users/elkaties/events{/privacy}","received_events_url":"https://api.github.com/users/elkaties/received_events","type":"User","site_admin":false},"repo":{"id":68601881,"name":"KotlinAsFirst2016","full_name":"elkaties/KotlinAsFirst2016","owner":{"login":"elkaties","id":22023223,"avatar_url":"https://avatars.githubusercontent.com/u/22023223?v=3","gravatar_id":"","url":"https://api.github.com/users/elkaties","html_url":"https://github.com/elkaties","followers_url":"https://api.github.com/users/elkaties/followers","following_url":"https://api.github.com/users/elkaties/following{/other_user}","gists_url":"https://api.github.com/users/elkaties/gists{/gist_id}","starred_url":"https://api.github.com/users/elkaties/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elkaties/subscriptions","organizations_url":"https://api.github.com/users/elkaties/orgs","repos_url":"https://api.github.com/users/elkaties/repos","events_url":"https://api.github.com/users/elkaties/events{/privacy}","received_events_url":"https://api.github.com/users/elkaties/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elkaties/KotlinAsFirst2016","description":null,"fork":true,"url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/elkaties/KotlinAsFirst2016/deployments","created_at":"2016-09-19T12:05:48Z","updated_at":"2016-09-19T12:05:50Z","pushed_at":"2016-12-19T12:36:57Z","git_url":"git://github.com/elkaties/KotlinAsFirst2016.git","ssh_url":"git@github.com:elkaties/KotlinAsFirst2016.git","clone_url":"https://github.com/elkaties/KotlinAsFirst2016.git","svn_url":"https://github.com/elkaties/KotlinAsFirst2016","homepage":null,"size":5754,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"Kotlin-Polytech:master","ref":"master","sha":"26cbba4ca790020f2d1d6e4a28c6618d5c4dc727","user":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"repo":{"id":67405509,"name":"KotlinAsFirst2016","full_name":"Kotlin-Polytech/KotlinAsFirst2016","owner":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","description":null,"fork":false,"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/deployments","created_at":"2016-09-05T09:06:26Z","updated_at":"2016-12-18T20:30:29Z","pushed_at":"2016-12-19T12:36:58Z","git_url":"git://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","ssh_url":"git@github.com:Kotlin-Polytech/KotlinAsFirst2016.git","clone_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","svn_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","homepage":null,"size":30207,"stargazers_count":19,"watchers_count":19,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":80,"forks":101,"open_issues":80,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/255"},"issue":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/255"},"comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/0415c574860bb48fd527603c6a683663b2474dcf"}}}}
{"actor":{"display_login":"elkaties"}}