{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/85515529","pull_request_review_id":6223211,"id":85515529,"diff_hunk":"@@ -184,7 +251,18 @@ fun convert(n: Int, base: Int): List<Int> = TODO()\n  * строчными буквами: 10 -> a, 11 -> b, 12 -> c и так далее.\n  * Например: n = 100, base = 4 -> 1210, n = 250, base = 14 -> 13c\n  */\n-fun convertToString(n: Int, base: Int): String = TODO()\n+fun numToSymbol(n: Int): String = if (n < 10) \"$n\" else \"${('a' + n - 10).toChar()}\"\n+\n+fun convertToString(n: Int, base: Int): String {\n+    val digitStorage = convert(n, base)\n+\n+    if (n < 0 || base < 2 || base > 36) return \"\"\n+\n+    with(StringBuilder()) {\n+        for (element in digitStorage) append(numToSymbol(element))","path":"src/lesson4/task1/List.kt","position":165,"original_position":165,"commit_id":"4f73578c2f9747570ca90b0ccd955fa123790eff","original_commit_id":"71f85ca98123d73e3a47a6085253f7d697042f1a","user":{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false},"body":"Совсем круто было бы, если бы вы разобрались, как это написать через функцию `fold`","created_at":"2016-10-28T11:45:03Z","updated_at":"2016-10-28T12:01:26Z","html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/9#discussion_r85515529","pull_request_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/85515529"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/9#discussion_r85515529"},"pull_request":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9","id":84275546,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/9","diff_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/9.diff","patch_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/9.patch","issue_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/9","number":9,"state":"open","locked":false,"title":"Some tasks solved","user":{"login":"DDRDmakar","id":12677942,"avatar_url":"https://avatars.githubusercontent.com/u/12677942?v=3","gravatar_id":"","url":"https://api.github.com/users/DDRDmakar","html_url":"https://github.com/DDRDmakar","followers_url":"https://api.github.com/users/DDRDmakar/followers","following_url":"https://api.github.com/users/DDRDmakar/following{/other_user}","gists_url":"https://api.github.com/users/DDRDmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/DDRDmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DDRDmakar/subscriptions","organizations_url":"https://api.github.com/users/DDRDmakar/orgs","repos_url":"https://api.github.com/users/DDRDmakar/repos","events_url":"https://api.github.com/users/DDRDmakar/events{/privacy}","received_events_url":"https://api.github.com/users/DDRDmakar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-07T10:33:25Z","updated_at":"2016-10-28T12:01:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"790320fc1a447217713952b5d2dc9fda394c9243","assignee":{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false},"assignees":[{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9/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/9/comments","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/4f73578c2f9747570ca90b0ccd955fa123790eff","head":{"label":"DDRDmakar:master","ref":"master","sha":"4f73578c2f9747570ca90b0ccd955fa123790eff","user":{"login":"DDRDmakar","id":12677942,"avatar_url":"https://avatars.githubusercontent.com/u/12677942?v=3","gravatar_id":"","url":"https://api.github.com/users/DDRDmakar","html_url":"https://github.com/DDRDmakar","followers_url":"https://api.github.com/users/DDRDmakar/followers","following_url":"https://api.github.com/users/DDRDmakar/following{/other_user}","gists_url":"https://api.github.com/users/DDRDmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/DDRDmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DDRDmakar/subscriptions","organizations_url":"https://api.github.com/users/DDRDmakar/orgs","repos_url":"https://api.github.com/users/DDRDmakar/repos","events_url":"https://api.github.com/users/DDRDmakar/events{/privacy}","received_events_url":"https://api.github.com/users/DDRDmakar/received_events","type":"User","site_admin":false},"repo":{"id":67547570,"name":"KotlinAsFirst2016","full_name":"DDRDmakar/KotlinAsFirst2016","owner":{"login":"DDRDmakar","id":12677942,"avatar_url":"https://avatars.githubusercontent.com/u/12677942?v=3","gravatar_id":"","url":"https://api.github.com/users/DDRDmakar","html_url":"https://github.com/DDRDmakar","followers_url":"https://api.github.com/users/DDRDmakar/followers","following_url":"https://api.github.com/users/DDRDmakar/following{/other_user}","gists_url":"https://api.github.com/users/DDRDmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/DDRDmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DDRDmakar/subscriptions","organizations_url":"https://api.github.com/users/DDRDmakar/orgs","repos_url":"https://api.github.com/users/DDRDmakar/repos","events_url":"https://api.github.com/users/DDRDmakar/events{/privacy}","received_events_url":"https://api.github.com/users/DDRDmakar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DDRDmakar/KotlinAsFirst2016","description":null,"fork":true,"url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/DDRDmakar/KotlinAsFirst2016/deployments","created_at":"2016-09-06T21:16:59Z","updated_at":"2016-09-06T21:17:01Z","pushed_at":"2016-10-28T11:46:16Z","git_url":"git://github.com/DDRDmakar/KotlinAsFirst2016.git","ssh_url":"git@github.com:DDRDmakar/KotlinAsFirst2016.git","clone_url":"https://github.com/DDRDmakar/KotlinAsFirst2016.git","svn_url":"https://github.com/DDRDmakar/KotlinAsFirst2016","homepage":null,"size":426,"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":"4c42ef095879746da89bb875056d9b13453240a1","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-10-28T07:19:53Z","pushed_at":"2016-10-28T11:46:16Z","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":18416,"stargazers_count":16,"watchers_count":16,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":78,"forks":99,"open_issues":78,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/9"},"issue":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/9"},"comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/9/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/9/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/4f73578c2f9747570ca90b0ccd955fa123790eff"}}}}
{"actor":{"display_login":"ice-phoenix"}}