{"action":"created","comment":{"url":"https://api.github.com/repos/godotengine/godot/pulls/comments/206075435","pull_request_review_id":141463939,"id":206075435,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjA3NTQzNQ==","diff_hunk":"@@ -355,6 +355,48 @@ Variant Array::pop_front() {\n \treturn Variant();\n }\n \n+Array *Array::reduce(Object *p_obj, const StringName &p_function, const Variant &p_args) {\n+\tArray *ret = new Array();","path":"core/array.cpp","position":5,"original_position":5,"commit_id":"773babdde4ce875c23de77398eeb0140457d7b3d","original_commit_id":"773babdde4ce875c23de77398eeb0140457d7b3d","user":{"login":"karroffel","id":5209613,"node_id":"MDQ6VXNlcjUyMDk2MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5209613?v=4","gravatar_id":"","url":"https://api.github.com/users/karroffel","html_url":"https://github.com/karroffel","followers_url":"https://api.github.com/users/karroffel/followers","following_url":"https://api.github.com/users/karroffel/following{/other_user}","gists_url":"https://api.github.com/users/karroffel/gists{/gist_id}","starred_url":"https://api.github.com/users/karroffel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karroffel/subscriptions","organizations_url":"https://api.github.com/users/karroffel/orgs","repos_url":"https://api.github.com/users/karroffel/repos","events_url":"https://api.github.com/users/karroffel/events{/privacy}","received_events_url":"https://api.github.com/users/karroffel/received_events","type":"User","site_admin":false},"body":"You can check how other GDNative functions deal with it, you usually write to a separate local variable, then create a GDNative-type variable and copy the raw data over.","created_at":"2018-07-30T09:55:02Z","updated_at":"2018-07-30T09:55:02Z","html_url":"https://github.com/godotengine/godot/pull/20545#discussion_r206075435","pull_request_url":"https://api.github.com/repos/godotengine/godot/pulls/20545","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/godotengine/godot/pulls/comments/206075435"},"html":{"href":"https://github.com/godotengine/godot/pull/20545#discussion_r206075435"},"pull_request":{"href":"https://api.github.com/repos/godotengine/godot/pulls/20545"}},"in_reply_to_id":206035530},"pull_request":{"url":"https://api.github.com/repos/godotengine/godot/pulls/20545","id":204601195,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NjAxMTk1","html_url":"https://github.com/godotengine/godot/pull/20545","diff_url":"https://github.com/godotengine/godot/pull/20545.diff","patch_url":"https://github.com/godotengine/godot/pull/20545.patch","issue_url":"https://api.github.com/repos/godotengine/godot/issues/20545","number":20545,"state":"open","locked":false,"title":"Added map and reduce functions to the Array Class","user":{"login":"mio991","id":6023976,"node_id":"MDQ6VXNlcjYwMjM5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/6023976?v=4","gravatar_id":"","url":"https://api.github.com/users/mio991","html_url":"https://github.com/mio991","followers_url":"https://api.github.com/users/mio991/followers","following_url":"https://api.github.com/users/mio991/following{/other_user}","gists_url":"https://api.github.com/users/mio991/gists{/gist_id}","starred_url":"https://api.github.com/users/mio991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mio991/subscriptions","organizations_url":"https://api.github.com/users/mio991/orgs","repos_url":"https://api.github.com/users/mio991/repos","events_url":"https://api.github.com/users/mio991/events{/privacy}","received_events_url":"https://api.github.com/users/mio991/received_events","type":"User","site_admin":false},"body":"+ Array.map(object, func, para)\r\n+ Array.reduce(object, func, para)","created_at":"2018-07-28T16:49:30Z","updated_at":"2018-07-30T09:55:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfb605cfed4e7e63a0ff8a1fd12008d78c78370d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"reduz","id":6265307,"node_id":"MDQ6VXNlcjYyNjUzMDc=","avatar_url":"https://avatars2.githubusercontent.com/u/6265307?v=4","gravatar_id":"","url":"https://api.github.com/users/reduz","html_url":"https://github.com/reduz","followers_url":"https://api.github.com/users/reduz/followers","following_url":"https://api.github.com/users/reduz/following{/other_user}","gists_url":"https://api.github.com/users/reduz/gists{/gist_id}","starred_url":"https://api.github.com/users/reduz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reduz/subscriptions","organizations_url":"https://api.github.com/users/reduz/orgs","repos_url":"https://api.github.com/users/reduz/repos","events_url":"https://api.github.com/users/reduz/events{/privacy}","received_events_url":"https://api.github.com/users/reduz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/godotengine/godot/pulls/20545/commits","review_comments_url":"https://api.github.com/repos/godotengine/godot/pulls/20545/comments","review_comment_url":"https://api.github.com/repos/godotengine/godot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/20545/comments","statuses_url":"https://api.github.com/repos/godotengine/godot/statuses/773babdde4ce875c23de77398eeb0140457d7b3d","head":{"label":"mio991:mio991","ref":"mio991","sha":"773babdde4ce875c23de77398eeb0140457d7b3d","user":{"login":"mio991","id":6023976,"node_id":"MDQ6VXNlcjYwMjM5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/6023976?v=4","gravatar_id":"","url":"https://api.github.com/users/mio991","html_url":"https://github.com/mio991","followers_url":"https://api.github.com/users/mio991/followers","following_url":"https://api.github.com/users/mio991/following{/other_user}","gists_url":"https://api.github.com/users/mio991/gists{/gist_id}","starred_url":"https://api.github.com/users/mio991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mio991/subscriptions","organizations_url":"https://api.github.com/users/mio991/orgs","repos_url":"https://api.github.com/users/mio991/repos","events_url":"https://api.github.com/users/mio991/events{/privacy}","received_events_url":"https://api.github.com/users/mio991/received_events","type":"User","site_admin":false},"repo":{"id":142694068,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI2OTQwNjg=","name":"godot","full_name":"mio991/godot","owner":{"login":"mio991","id":6023976,"node_id":"MDQ6VXNlcjYwMjM5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/6023976?v=4","gravatar_id":"","url":"https://api.github.com/users/mio991","html_url":"https://github.com/mio991","followers_url":"https://api.github.com/users/mio991/followers","following_url":"https://api.github.com/users/mio991/following{/other_user}","gists_url":"https://api.github.com/users/mio991/gists{/gist_id}","starred_url":"https://api.github.com/users/mio991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mio991/subscriptions","organizations_url":"https://api.github.com/users/mio991/orgs","repos_url":"https://api.github.com/users/mio991/repos","events_url":"https://api.github.com/users/mio991/events{/privacy}","received_events_url":"https://api.github.com/users/mio991/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mio991/godot","description":"Godot Engine – Multi-platform 2D and 3D game engine","fork":true,"url":"https://api.github.com/repos/mio991/godot","forks_url":"https://api.github.com/repos/mio991/godot/forks","keys_url":"https://api.github.com/repos/mio991/godot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mio991/godot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mio991/godot/teams","hooks_url":"https://api.github.com/repos/mio991/godot/hooks","issue_events_url":"https://api.github.com/repos/mio991/godot/issues/events{/number}","events_url":"https://api.github.com/repos/mio991/godot/events","assignees_url":"https://api.github.com/repos/mio991/godot/assignees{/user}","branches_url":"https://api.github.com/repos/mio991/godot/branches{/branch}","tags_url":"https://api.github.com/repos/mio991/godot/tags","blobs_url":"https://api.github.com/repos/mio991/godot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mio991/godot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mio991/godot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mio991/godot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mio991/godot/statuses/{sha}","languages_url":"https://api.github.com/repos/mio991/godot/languages","stargazers_url":"https://api.github.com/repos/mio991/godot/stargazers","contributors_url":"https://api.github.com/repos/mio991/godot/contributors","subscribers_url":"https://api.github.com/repos/mio991/godot/subscribers","subscription_url":"https://api.github.com/repos/mio991/godot/subscription","commits_url":"https://api.github.com/repos/mio991/godot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mio991/godot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mio991/godot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mio991/godot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mio991/godot/contents/{+path}","compare_url":"https://api.github.com/repos/mio991/godot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mio991/godot/merges","archive_url":"https://api.github.com/repos/mio991/godot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mio991/godot/downloads","issues_url":"https://api.github.com/repos/mio991/godot/issues{/number}","pulls_url":"https://api.github.com/repos/mio991/godot/pulls{/number}","milestones_url":"https://api.github.com/repos/mio991/godot/milestones{/number}","notifications_url":"https://api.github.com/repos/mio991/godot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mio991/godot/labels{/name}","releases_url":"https://api.github.com/repos/mio991/godot/releases{/id}","deployments_url":"https://api.github.com/repos/mio991/godot/deployments","created_at":"2018-07-28T16:47:57Z","updated_at":"2018-07-28T16:48:06Z","pushed_at":"2018-07-29T11:07:00Z","git_url":"git://github.com/mio991/godot.git","ssh_url":"git@github.com:mio991/godot.git","clone_url":"https://github.com/mio991/godot.git","svn_url":"https://github.com/mio991/godot","homepage":"https://godotengine.org","size":252323,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"godotengine:master","ref":"master","sha":"90298ddf01622ec4d8a50deaf7c351a766b9e78a","user":{"login":"godotengine","id":6318500,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMTg1MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/6318500?v=4","gravatar_id":"","url":"https://api.github.com/users/godotengine","html_url":"https://github.com/godotengine","followers_url":"https://api.github.com/users/godotengine/followers","following_url":"https://api.github.com/users/godotengine/following{/other_user}","gists_url":"https://api.github.com/users/godotengine/gists{/gist_id}","starred_url":"https://api.github.com/users/godotengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godotengine/subscriptions","organizations_url":"https://api.github.com/users/godotengine/orgs","repos_url":"https://api.github.com/users/godotengine/repos","events_url":"https://api.github.com/users/godotengine/events{/privacy}","received_events_url":"https://api.github.com/users/godotengine/received_events","type":"Organization","site_admin":false},"repo":{"id":15634981,"node_id":"MDEwOlJlcG9zaXRvcnkxNTYzNDk4MQ==","name":"godot","full_name":"godotengine/godot","owner":{"login":"godotengine","id":6318500,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMTg1MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/6318500?v=4","gravatar_id":"","url":"https://api.github.com/users/godotengine","html_url":"https://github.com/godotengine","followers_url":"https://api.github.com/users/godotengine/followers","following_url":"https://api.github.com/users/godotengine/following{/other_user}","gists_url":"https://api.github.com/users/godotengine/gists{/gist_id}","starred_url":"https://api.github.com/users/godotengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godotengine/subscriptions","organizations_url":"https://api.github.com/users/godotengine/orgs","repos_url":"https://api.github.com/users/godotengine/repos","events_url":"https://api.github.com/users/godotengine/events{/privacy}","received_events_url":"https://api.github.com/users/godotengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/godotengine/godot","description":"Godot Engine – Multi-platform 2D and 3D game engine","fork":false,"url":"https://api.github.com/repos/godotengine/godot","forks_url":"https://api.github.com/repos/godotengine/godot/forks","keys_url":"https://api.github.com/repos/godotengine/godot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/godotengine/godot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/godotengine/godot/teams","hooks_url":"https://api.github.com/repos/godotengine/godot/hooks","issue_events_url":"https://api.github.com/repos/godotengine/godot/issues/events{/number}","events_url":"https://api.github.com/repos/godotengine/godot/events","assignees_url":"https://api.github.com/repos/godotengine/godot/assignees{/user}","branches_url":"https://api.github.com/repos/godotengine/godot/branches{/branch}","tags_url":"https://api.github.com/repos/godotengine/godot/tags","blobs_url":"https://api.github.com/repos/godotengine/godot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/godotengine/godot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/godotengine/godot/git/refs{/sha}","trees_url":"https://api.github.com/repos/godotengine/godot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/godotengine/godot/statuses/{sha}","languages_url":"https://api.github.com/repos/godotengine/godot/languages","stargazers_url":"https://api.github.com/repos/godotengine/godot/stargazers","contributors_url":"https://api.github.com/repos/godotengine/godot/contributors","subscribers_url":"https://api.github.com/repos/godotengine/godot/subscribers","subscription_url":"https://api.github.com/repos/godotengine/godot/subscription","commits_url":"https://api.github.com/repos/godotengine/godot/commits{/sha}","git_commits_url":"https://api.github.com/repos/godotengine/godot/git/commits{/sha}","comments_url":"https://api.github.com/repos/godotengine/godot/comments{/number}","issue_comment_url":"https://api.github.com/repos/godotengine/godot/issues/comments{/number}","contents_url":"https://api.github.com/repos/godotengine/godot/contents/{+path}","compare_url":"https://api.github.com/repos/godotengine/godot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/godotengine/godot/merges","archive_url":"https://api.github.com/repos/godotengine/godot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/godotengine/godot/downloads","issues_url":"https://api.github.com/repos/godotengine/godot/issues{/number}","pulls_url":"https://api.github.com/repos/godotengine/godot/pulls{/number}","milestones_url":"https://api.github.com/repos/godotengine/godot/milestones{/number}","notifications_url":"https://api.github.com/repos/godotengine/godot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/godotengine/godot/labels{/name}","releases_url":"https://api.github.com/repos/godotengine/godot/releases{/id}","deployments_url":"https://api.github.com/repos/godotengine/godot/deployments","created_at":"2014-01-04T16:05:36Z","updated_at":"2018-07-30T08:52:54Z","pushed_at":"2018-07-30T09:34:32Z","git_url":"git://github.com/godotengine/godot.git","ssh_url":"git@github.com:godotengine/godot.git","clone_url":"https://github.com/godotengine/godot.git","svn_url":"https://github.com/godotengine/godot","homepage":"https://godotengine.org","size":252655,"stargazers_count":15962,"watchers_count":15962,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3296,"mirror_url":null,"archived":false,"open_issues_count":3867,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3296,"open_issues":3867,"watchers":15962,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/godotengine/godot/pulls/20545"},"html":{"href":"https://github.com/godotengine/godot/pull/20545"},"issue":{"href":"https://api.github.com/repos/godotengine/godot/issues/20545"},"comments":{"href":"https://api.github.com/repos/godotengine/godot/issues/20545/comments"},"review_comments":{"href":"https://api.github.com/repos/godotengine/godot/pulls/20545/comments"},"review_comment":{"href":"https://api.github.com/repos/godotengine/godot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/godotengine/godot/pulls/20545/commits"},"statuses":{"href":"https://api.github.com/repos/godotengine/godot/statuses/773babdde4ce875c23de77398eeb0140457d7b3d"}},"author_association":"NONE"}}
{"actor":{"display_login":"karroffel"}}