{"action":"created","comment":{"url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/comments/170423314","pull_request_review_id":99114635,"id":170423314,"diff_hunk":"@@ -0,0 +1,58 @@\n+﻿(*2.1*)\n+\n+let count n = \n+    let rec recCount n b = \n+        if n % 10 = n then n * b\n+        else recCount (n / 10) (b * (n % 10))\n+\n+    recCount n 1\n+\n+(*2.2*)\n+\n+let indexOf element list = \n+    let rec recIndexOf index list = \n+        match list with\n+        | []           -> None\n+        | head :: tail -> \n+            if head = element then Some(index)\n+            else recIndexOf (index + 1) tail\n+\n+    recIndexOf 0 list\n+\n+(*2.3*)\n+\n+let palindrom (x:string) = \n+    match x with\n+    | \"\" -> true\n+    | _  -> Seq.forall(fun i -> x.[i] = x.[x.Length - i - 1]) {0..x.Length / 2}\n+\n+(*2.4*)\n+\n+let rec mergeSort list =\n+\n+    let split list = \n+        let rec recSplit list (left, right) = \n+            match list with \n+            | []  -> (left, right)\n+            | [x] -> (x :: left, right)\n+            | x :: y :: tail -> recSplit tail (x :: left, y :: right)\n+\n+        recSplit list ([], [])\n+\n+    let merge left right = \n+        let rec recMerge left right result = \n+            match left, right with\n+            | [], []                                      -> result\n+            | head :: tail, [] | [], head :: tail         -> recMerge [] tail (head :: result)\n+            | leftHead :: leftTail, rightHead :: righTail -> \n+                if leftHead > rightHead then recMerge righTail left (rightHead :: result)\n+                else recMerge right leftTail (leftHead :: result)\n+\n+        List.rev(recMerge left right [])\n+\n+    match list with\n+    | []  -> []\n+    | [x] -> list\n+    | _   -> \n+        let left, right = split list\n+        merge (mergeSort left) (mergeSort right)","path":"course2/sem4/hw2/hw2/Program.fs","position":58,"original_position":58,"commit_id":"f96018c7555e376a40c794a5cc14f41508cb368f","original_commit_id":"f96018c7555e376a40c794a5cc14f41508cb368f","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars3.githubusercontent.com/u/706768?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"Я только что видел в точности такое же решение: https://github.com/AnastasiaTuchina/FSharp-Projects/blob/master/hw2/hw2/Program.fs#L47. То ли вы делаете вместе, то ли скатываете из одного и того же места, то ли мыслите абсолютно одинаково. В любом случае, надо переделать :)","created_at":"2018-02-24T15:03:40Z","updated_at":"2018-02-24T15:03:45Z","html_url":"https://github.com/RexTremendaeMajestatis/SPbSU/pull/9#discussion_r170423314","pull_request_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/comments/170423314"},"html":{"href":"https://github.com/RexTremendaeMajestatis/SPbSU/pull/9#discussion_r170423314"},"pull_request":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9","id":170761407,"html_url":"https://github.com/RexTremendaeMajestatis/SPbSU/pull/9","diff_url":"https://github.com/RexTremendaeMajestatis/SPbSU/pull/9.diff","patch_url":"https://github.com/RexTremendaeMajestatis/SPbSU/pull/9.patch","issue_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/9","number":9,"state":"open","locked":false,"title":"hw2","user":{"login":"RexTremendaeMajestatis","id":19237613,"avatar_url":"https://avatars0.githubusercontent.com/u/19237613?v=4","gravatar_id":"","url":"https://api.github.com/users/RexTremendaeMajestatis","html_url":"https://github.com/RexTremendaeMajestatis","followers_url":"https://api.github.com/users/RexTremendaeMajestatis/followers","following_url":"https://api.github.com/users/RexTremendaeMajestatis/following{/other_user}","gists_url":"https://api.github.com/users/RexTremendaeMajestatis/gists{/gist_id}","starred_url":"https://api.github.com/users/RexTremendaeMajestatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RexTremendaeMajestatis/subscriptions","organizations_url":"https://api.github.com/users/RexTremendaeMajestatis/orgs","repos_url":"https://api.github.com/users/RexTremendaeMajestatis/repos","events_url":"https://api.github.com/users/RexTremendaeMajestatis/events{/privacy}","received_events_url":"https://api.github.com/users/RexTremendaeMajestatis/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-22T14:14:21Z","updated_at":"2018-02-24T15:03:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f89553366daabe6012bed70f169edcfd475951e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9/commits","review_comments_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9/comments","review_comment_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/9/comments","statuses_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/statuses/f96018c7555e376a40c794a5cc14f41508cb368f","head":{"label":"RexTremendaeMajestatis:hw2","ref":"hw2","sha":"f96018c7555e376a40c794a5cc14f41508cb368f","user":{"login":"RexTremendaeMajestatis","id":19237613,"avatar_url":"https://avatars0.githubusercontent.com/u/19237613?v=4","gravatar_id":"","url":"https://api.github.com/users/RexTremendaeMajestatis","html_url":"https://github.com/RexTremendaeMajestatis","followers_url":"https://api.github.com/users/RexTremendaeMajestatis/followers","following_url":"https://api.github.com/users/RexTremendaeMajestatis/following{/other_user}","gists_url":"https://api.github.com/users/RexTremendaeMajestatis/gists{/gist_id}","starred_url":"https://api.github.com/users/RexTremendaeMajestatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RexTremendaeMajestatis/subscriptions","organizations_url":"https://api.github.com/users/RexTremendaeMajestatis/orgs","repos_url":"https://api.github.com/users/RexTremendaeMajestatis/repos","events_url":"https://api.github.com/users/RexTremendaeMajestatis/events{/privacy}","received_events_url":"https://api.github.com/users/RexTremendaeMajestatis/received_events","type":"User","site_admin":false},"repo":{"id":104943081,"name":"SPbSU","full_name":"RexTremendaeMajestatis/SPbSU","owner":{"login":"RexTremendaeMajestatis","id":19237613,"avatar_url":"https://avatars0.githubusercontent.com/u/19237613?v=4","gravatar_id":"","url":"https://api.github.com/users/RexTremendaeMajestatis","html_url":"https://github.com/RexTremendaeMajestatis","followers_url":"https://api.github.com/users/RexTremendaeMajestatis/followers","following_url":"https://api.github.com/users/RexTremendaeMajestatis/following{/other_user}","gists_url":"https://api.github.com/users/RexTremendaeMajestatis/gists{/gist_id}","starred_url":"https://api.github.com/users/RexTremendaeMajestatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RexTremendaeMajestatis/subscriptions","organizations_url":"https://api.github.com/users/RexTremendaeMajestatis/orgs","repos_url":"https://api.github.com/users/RexTremendaeMajestatis/repos","events_url":"https://api.github.com/users/RexTremendaeMajestatis/events{/privacy}","received_events_url":"https://api.github.com/users/RexTremendaeMajestatis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RexTremendaeMajestatis/SPbSU","description":"Mathematics & Mechanics Faculty","fork":false,"url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU","forks_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/forks","keys_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/teams","hooks_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/hooks","issue_events_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/events{/number}","events_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/events","assignees_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/assignees{/user}","branches_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/branches{/branch}","tags_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/tags","blobs_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/refs{/sha}","trees_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/statuses/{sha}","languages_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/languages","stargazers_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/stargazers","contributors_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/contributors","subscribers_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/subscribers","subscription_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/subscription","commits_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/commits{/sha}","git_commits_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/commits{/sha}","comments_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/comments{/number}","issue_comment_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/comments{/number}","contents_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/contents/{+path}","compare_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/merges","archive_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/downloads","issues_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues{/number}","pulls_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls{/number}","milestones_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/milestones{/number}","notifications_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/labels{/name}","releases_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/releases{/id}","deployments_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/deployments","created_at":"2017-09-26T22:13:42Z","updated_at":"2017-12-25T20:53:59Z","pushed_at":"2018-02-24T14:22:33Z","git_url":"git://github.com/RexTremendaeMajestatis/SPbSU.git","ssh_url":"git@github.com:RexTremendaeMajestatis/SPbSU.git","clone_url":"https://github.com/RexTremendaeMajestatis/SPbSU.git","svn_url":"https://github.com/RexTremendaeMajestatis/SPbSU","homepage":null,"size":134,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"RexTremendaeMajestatis:master","ref":"master","sha":"4dd2cfc808c05d3d22d846a2f170e2c8b4be1f02","user":{"login":"RexTremendaeMajestatis","id":19237613,"avatar_url":"https://avatars0.githubusercontent.com/u/19237613?v=4","gravatar_id":"","url":"https://api.github.com/users/RexTremendaeMajestatis","html_url":"https://github.com/RexTremendaeMajestatis","followers_url":"https://api.github.com/users/RexTremendaeMajestatis/followers","following_url":"https://api.github.com/users/RexTremendaeMajestatis/following{/other_user}","gists_url":"https://api.github.com/users/RexTremendaeMajestatis/gists{/gist_id}","starred_url":"https://api.github.com/users/RexTremendaeMajestatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RexTremendaeMajestatis/subscriptions","organizations_url":"https://api.github.com/users/RexTremendaeMajestatis/orgs","repos_url":"https://api.github.com/users/RexTremendaeMajestatis/repos","events_url":"https://api.github.com/users/RexTremendaeMajestatis/events{/privacy}","received_events_url":"https://api.github.com/users/RexTremendaeMajestatis/received_events","type":"User","site_admin":false},"repo":{"id":104943081,"name":"SPbSU","full_name":"RexTremendaeMajestatis/SPbSU","owner":{"login":"RexTremendaeMajestatis","id":19237613,"avatar_url":"https://avatars0.githubusercontent.com/u/19237613?v=4","gravatar_id":"","url":"https://api.github.com/users/RexTremendaeMajestatis","html_url":"https://github.com/RexTremendaeMajestatis","followers_url":"https://api.github.com/users/RexTremendaeMajestatis/followers","following_url":"https://api.github.com/users/RexTremendaeMajestatis/following{/other_user}","gists_url":"https://api.github.com/users/RexTremendaeMajestatis/gists{/gist_id}","starred_url":"https://api.github.com/users/RexTremendaeMajestatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RexTremendaeMajestatis/subscriptions","organizations_url":"https://api.github.com/users/RexTremendaeMajestatis/orgs","repos_url":"https://api.github.com/users/RexTremendaeMajestatis/repos","events_url":"https://api.github.com/users/RexTremendaeMajestatis/events{/privacy}","received_events_url":"https://api.github.com/users/RexTremendaeMajestatis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RexTremendaeMajestatis/SPbSU","description":"Mathematics & Mechanics Faculty","fork":false,"url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU","forks_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/forks","keys_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/teams","hooks_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/hooks","issue_events_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/events{/number}","events_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/events","assignees_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/assignees{/user}","branches_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/branches{/branch}","tags_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/tags","blobs_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/refs{/sha}","trees_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/statuses/{sha}","languages_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/languages","stargazers_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/stargazers","contributors_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/contributors","subscribers_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/subscribers","subscription_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/subscription","commits_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/commits{/sha}","git_commits_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/git/commits{/sha}","comments_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/comments{/number}","issue_comment_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/comments{/number}","contents_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/contents/{+path}","compare_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/merges","archive_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/downloads","issues_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues{/number}","pulls_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls{/number}","milestones_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/milestones{/number}","notifications_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/labels{/name}","releases_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/releases{/id}","deployments_url":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/deployments","created_at":"2017-09-26T22:13:42Z","updated_at":"2017-12-25T20:53:59Z","pushed_at":"2018-02-24T14:22:33Z","git_url":"git://github.com/RexTremendaeMajestatis/SPbSU.git","ssh_url":"git@github.com:RexTremendaeMajestatis/SPbSU.git","clone_url":"https://github.com/RexTremendaeMajestatis/SPbSU.git","svn_url":"https://github.com/RexTremendaeMajestatis/SPbSU","homepage":null,"size":134,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"unlicense","name":"The Unlicense","spdx_id":"Unlicense","url":"https://api.github.com/licenses/unlicense"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9"},"html":{"href":"https://github.com/RexTremendaeMajestatis/SPbSU/pull/9"},"issue":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/9"},"comments":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/RexTremendaeMajestatis/SPbSU/statuses/f96018c7555e376a40c794a5cc14f41508cb368f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"yurii-litvinov"}}