{"action":"created","comment":{"url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/comments/243777455","pull_request_review_id":187634165,"id":243777455,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mzc3NzQ1NQ==","diff_hunk":"@@ -0,0 +1,250 @@\n+package Lodash\n+import LinkedList\n+import HashMap\n+\n+public interface Function<S, R>\n+    function call(S s) returns R\n+\n+public interface Predicate<S>\n+    function call(S s) returns bool\n+\n+public interface BiFunction<S, T, R>\n+    function call(S s, T t) returns R\n+\n+public interface TriFunction<S, T, U, R>\n+    function call(S s, T t, U u) returns R\n+\n+public function LinkedList<T>.takeWhile<T>(TriFunction<T, int, LinkedList<T>, bool> predicate) returns LinkedList<T>\n+    let list = new LinkedList<T>()\n+    let iter = this.iterator()\n+    for elem from iter\n+        if not predicate.call(elem, list.size(), this)\n+            break\n+        list.add(elem)\n+    iter.close()\n+    return list\n+\n+public function LinkedList<T>.takeWhile<T>(BiFunction<T, int, bool> predicate) returns LinkedList<T>\n+    return this.takeWhile((x, y, _z) -> predicate.call(x, y))\n+\n+public function LinkedList<T>.takeWhile<T>(Predicate<T> predicate) returns LinkedList<T>\n+    return this.takeWhile((x, _y) -> predicate.call(x))\n+\n+public function take<T>(int numElems, LinkedList<T> list) returns LinkedList<T>\n+    let result = new LinkedList<T>()\n+    let take = min(numElems, list.size())\n+    let iter = list.iterator()\n+    for elem from iter\n+        if result.size() == take\n+            break\n+        result.add(elem)\n+    iter.close()\n+    return result\n+\n+public function take<T>(int numElems) returns Function<LinkedList<T>, LinkedList<T>>\n+    return list -> take(numElems, list)\n+\n+public function LinkedList<T>.take<T>(int numElems) returns LinkedList<T>\n+    return take(numElems, this)\n+\n+public function foldl<Q, T>(Q startValue, BiFunction<T, Q, Q> transform, LinkedList<T> list) returns Q","path":"wurst/lib/Lodash.wurst","position":50,"original_position":50,"commit_id":"9630ba0498382992eb3b2f35e597455244ce21a3","original_commit_id":"fa093a016bf9ea30baab32577d02c55282be02e5","user":{"login":"theQuazz","id":1770455,"node_id":"MDQ6VXNlcjE3NzA0NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1770455?v=4","gravatar_id":"","url":"https://api.github.com/users/theQuazz","html_url":"https://github.com/theQuazz","followers_url":"https://api.github.com/users/theQuazz/followers","following_url":"https://api.github.com/users/theQuazz/following{/other_user}","gists_url":"https://api.github.com/users/theQuazz/gists{/gist_id}","starred_url":"https://api.github.com/users/theQuazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theQuazz/subscriptions","organizations_url":"https://api.github.com/users/theQuazz/orgs","repos_url":"https://api.github.com/users/theQuazz/repos","events_url":"https://api.github.com/users/theQuazz/events{/privacy}","received_events_url":"https://api.github.com/users/theQuazz/received_events","type":"User","site_admin":false},"body":"@jonathanmclaus reduce can be either foldl or foldr, this is more explicit lol","created_at":"2018-12-23T22:19:09Z","updated_at":"2018-12-23T22:19:09Z","html_url":"https://github.com/island-troll-tribes/island-troll-tribes/pull/144#discussion_r243777455","pull_request_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/comments/243777455"},"html":{"href":"https://github.com/island-troll-tribes/island-troll-tribes/pull/144#discussion_r243777455"},"pull_request":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144"}},"in_reply_to_id":243721009},"pull_request":{"url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144","id":239670215,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NjcwMjE1","html_url":"https://github.com/island-troll-tribes/island-troll-tribes/pull/144","diff_url":"https://github.com/island-troll-tribes/island-troll-tribes/pull/144.diff","patch_url":"https://github.com/island-troll-tribes/island-troll-tribes/pull/144.patch","issue_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/144","number":144,"state":"open","locked":false,"title":"Move GameConfig and GameModes to Wurst","user":{"login":"theQuazz","id":1770455,"node_id":"MDQ6VXNlcjE3NzA0NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1770455?v=4","gravatar_id":"","url":"https://api.github.com/users/theQuazz","html_url":"https://github.com/theQuazz","followers_url":"https://api.github.com/users/theQuazz/followers","following_url":"https://api.github.com/users/theQuazz/following{/other_user}","gists_url":"https://api.github.com/users/theQuazz/gists{/gist_id}","starred_url":"https://api.github.com/users/theQuazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theQuazz/subscriptions","organizations_url":"https://api.github.com/users/theQuazz/orgs","repos_url":"https://api.github.com/users/theQuazz/repos","events_url":"https://api.github.com/users/theQuazz/events{/privacy}","received_events_url":"https://api.github.com/users/theQuazz/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-18T23:53:29Z","updated_at":"2018-12-23T22:19:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6227393b3391891ca40dcbe4a283d1b04c33d35","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Marsunpaisti","id":10946514,"node_id":"MDQ6VXNlcjEwOTQ2NTE0","avatar_url":"https://avatars0.githubusercontent.com/u/10946514?v=4","gravatar_id":"","url":"https://api.github.com/users/Marsunpaisti","html_url":"https://github.com/Marsunpaisti","followers_url":"https://api.github.com/users/Marsunpaisti/followers","following_url":"https://api.github.com/users/Marsunpaisti/following{/other_user}","gists_url":"https://api.github.com/users/Marsunpaisti/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsunpaisti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsunpaisti/subscriptions","organizations_url":"https://api.github.com/users/Marsunpaisti/orgs","repos_url":"https://api.github.com/users/Marsunpaisti/repos","events_url":"https://api.github.com/users/Marsunpaisti/events{/privacy}","received_events_url":"https://api.github.com/users/Marsunpaisti/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144/commits","review_comments_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144/comments","review_comment_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/144/comments","statuses_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/statuses/9630ba0498382992eb3b2f35e597455244ce21a3","head":{"label":"island-troll-tribes:remove-zinc","ref":"remove-zinc","sha":"9630ba0498382992eb3b2f35e597455244ce21a3","user":{"login":"island-troll-tribes","id":6307062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDcwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6307062?v=4","gravatar_id":"","url":"https://api.github.com/users/island-troll-tribes","html_url":"https://github.com/island-troll-tribes","followers_url":"https://api.github.com/users/island-troll-tribes/followers","following_url":"https://api.github.com/users/island-troll-tribes/following{/other_user}","gists_url":"https://api.github.com/users/island-troll-tribes/gists{/gist_id}","starred_url":"https://api.github.com/users/island-troll-tribes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/island-troll-tribes/subscriptions","organizations_url":"https://api.github.com/users/island-troll-tribes/orgs","repos_url":"https://api.github.com/users/island-troll-tribes/repos","events_url":"https://api.github.com/users/island-troll-tribes/events{/privacy}","received_events_url":"https://api.github.com/users/island-troll-tribes/received_events","type":"Organization","site_admin":false},"repo":{"id":8150412,"node_id":"MDEwOlJlcG9zaXRvcnk4MTUwNDEy","name":"island-troll-tribes","full_name":"island-troll-tribes/island-troll-tribes","private":false,"owner":{"login":"island-troll-tribes","id":6307062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDcwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6307062?v=4","gravatar_id":"","url":"https://api.github.com/users/island-troll-tribes","html_url":"https://github.com/island-troll-tribes","followers_url":"https://api.github.com/users/island-troll-tribes/followers","following_url":"https://api.github.com/users/island-troll-tribes/following{/other_user}","gists_url":"https://api.github.com/users/island-troll-tribes/gists{/gist_id}","starred_url":"https://api.github.com/users/island-troll-tribes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/island-troll-tribes/subscriptions","organizations_url":"https://api.github.com/users/island-troll-tribes/orgs","repos_url":"https://api.github.com/users/island-troll-tribes/repos","events_url":"https://api.github.com/users/island-troll-tribes/events{/privacy}","received_events_url":"https://api.github.com/users/island-troll-tribes/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/island-troll-tribes/island-troll-tribes","description":"Island Troll Tribes, a Warcraft III Custom Game","fork":false,"url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes","forks_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/forks","keys_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/teams","hooks_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/hooks","issue_events_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/events{/number}","events_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/events","assignees_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/assignees{/user}","branches_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/branches{/branch}","tags_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/tags","blobs_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/refs{/sha}","trees_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/statuses/{sha}","languages_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/languages","stargazers_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/stargazers","contributors_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/contributors","subscribers_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/subscribers","subscription_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/subscription","commits_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/commits{/sha}","git_commits_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/commits{/sha}","comments_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/comments{/number}","issue_comment_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/comments{/number}","contents_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/contents/{+path}","compare_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/merges","archive_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/downloads","issues_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues{/number}","pulls_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls{/number}","milestones_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/milestones{/number}","notifications_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/labels{/name}","releases_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/releases{/id}","deployments_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/deployments","created_at":"2013-02-12T00:57:11Z","updated_at":"2018-12-23T14:54:16Z","pushed_at":"2018-12-23T22:18:11Z","git_url":"git://github.com/island-troll-tribes/island-troll-tribes.git","ssh_url":"git@github.com:island-troll-tribes/island-troll-tribes.git","clone_url":"https://github.com/island-troll-tribes/island-troll-tribes.git","svn_url":"https://github.com/island-troll-tribes/island-troll-tribes","homepage":"","size":70604,"stargazers_count":11,"watchers_count":11,"language":"Objective-J","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":29,"license":null,"forks":10,"open_issues":29,"watchers":11,"default_branch":"master"}},"base":{"label":"island-troll-tribes:master","ref":"master","sha":"6d9377eb8f73f8c6f9e629536d3f20b352b83048","user":{"login":"island-troll-tribes","id":6307062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDcwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6307062?v=4","gravatar_id":"","url":"https://api.github.com/users/island-troll-tribes","html_url":"https://github.com/island-troll-tribes","followers_url":"https://api.github.com/users/island-troll-tribes/followers","following_url":"https://api.github.com/users/island-troll-tribes/following{/other_user}","gists_url":"https://api.github.com/users/island-troll-tribes/gists{/gist_id}","starred_url":"https://api.github.com/users/island-troll-tribes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/island-troll-tribes/subscriptions","organizations_url":"https://api.github.com/users/island-troll-tribes/orgs","repos_url":"https://api.github.com/users/island-troll-tribes/repos","events_url":"https://api.github.com/users/island-troll-tribes/events{/privacy}","received_events_url":"https://api.github.com/users/island-troll-tribes/received_events","type":"Organization","site_admin":false},"repo":{"id":8150412,"node_id":"MDEwOlJlcG9zaXRvcnk4MTUwNDEy","name":"island-troll-tribes","full_name":"island-troll-tribes/island-troll-tribes","private":false,"owner":{"login":"island-troll-tribes","id":6307062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDcwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6307062?v=4","gravatar_id":"","url":"https://api.github.com/users/island-troll-tribes","html_url":"https://github.com/island-troll-tribes","followers_url":"https://api.github.com/users/island-troll-tribes/followers","following_url":"https://api.github.com/users/island-troll-tribes/following{/other_user}","gists_url":"https://api.github.com/users/island-troll-tribes/gists{/gist_id}","starred_url":"https://api.github.com/users/island-troll-tribes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/island-troll-tribes/subscriptions","organizations_url":"https://api.github.com/users/island-troll-tribes/orgs","repos_url":"https://api.github.com/users/island-troll-tribes/repos","events_url":"https://api.github.com/users/island-troll-tribes/events{/privacy}","received_events_url":"https://api.github.com/users/island-troll-tribes/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/island-troll-tribes/island-troll-tribes","description":"Island Troll Tribes, a Warcraft III Custom Game","fork":false,"url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes","forks_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/forks","keys_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/teams","hooks_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/hooks","issue_events_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/events{/number}","events_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/events","assignees_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/assignees{/user}","branches_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/branches{/branch}","tags_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/tags","blobs_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/refs{/sha}","trees_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/statuses/{sha}","languages_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/languages","stargazers_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/stargazers","contributors_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/contributors","subscribers_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/subscribers","subscription_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/subscription","commits_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/commits{/sha}","git_commits_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/git/commits{/sha}","comments_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/comments{/number}","issue_comment_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/comments{/number}","contents_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/contents/{+path}","compare_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/merges","archive_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/downloads","issues_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues{/number}","pulls_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls{/number}","milestones_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/milestones{/number}","notifications_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/labels{/name}","releases_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/releases{/id}","deployments_url":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/deployments","created_at":"2013-02-12T00:57:11Z","updated_at":"2018-12-23T14:54:16Z","pushed_at":"2018-12-23T22:18:11Z","git_url":"git://github.com/island-troll-tribes/island-troll-tribes.git","ssh_url":"git@github.com:island-troll-tribes/island-troll-tribes.git","clone_url":"https://github.com/island-troll-tribes/island-troll-tribes.git","svn_url":"https://github.com/island-troll-tribes/island-troll-tribes","homepage":"","size":70604,"stargazers_count":11,"watchers_count":11,"language":"Objective-J","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":29,"license":null,"forks":10,"open_issues":29,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144"},"html":{"href":"https://github.com/island-troll-tribes/island-troll-tribes/pull/144"},"issue":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/144"},"comments":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/island-troll-tribes/island-troll-tribes/statuses/9630ba0498382992eb3b2f35e597455244ce21a3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"theQuazz"}}