{"url":"https://api.github.com/repos/nushell/nushell/issues/3354","repository_url":"https://api.github.com/repos/nushell/nushell","labels_url":"https://api.github.com/repos/nushell/nushell/issues/3354/labels{/name}","comments_url":"https://api.github.com/repos/nushell/nushell/issues/3354/comments","events_url":"https://api.github.com/repos/nushell/nushell/issues/3354/events","html_url":"https://github.com/nushell/nushell/pull/3354","id":866849062,"node_id":"MDExOlB1bGxSZXF1ZXN0NjIyNjU3MjE4","number":3354,"title":"#3298: reduce --numbered bug","user":{"login":"jgoday","id":11801,"node_id":"MDQ6VXNlcjExODAx","avatar_url":"https://avatars.githubusercontent.com/u/11801?v=4","gravatar_id":"","url":"https://api.github.com/users/jgoday","html_url":"https://github.com/jgoday","followers_url":"https://api.github.com/users/jgoday/followers","following_url":"https://api.github.com/users/jgoday/following{/other_user}","gists_url":"https://api.github.com/users/jgoday/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoday/subscriptions","organizations_url":"https://api.github.com/users/jgoday/orgs","repos_url":"https://api.github.com/users/jgoday/repos","events_url":"https://api.github.com/users/jgoday/events{/privacy}","received_events_url":"https://api.github.com/users/jgoday/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignees":[],"milestone":null,"comments":1,"created_at":"2021-04-24T22:18:19Z","updated_at":"2021-04-27T07:07:56Z","closed_at":"2021-04-27T07:07:56Z","assignee":null,"author_association":"CONTRIBUTOR","type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/nushell/nushell/pulls/3354","html_url":"https://github.com/nushell/nushell/pull/3354","diff_url":"https://github.com/nushell/nushell/pull/3354.diff","patch_url":"https://github.com/nushell/nushell/pull/3354.patch","merged_at":"2021-04-27T07:07:56Z"},"body":"We make sure that reduce --numbered returns and indexed result in each iteration.\r\nAdded extra test (reduce_numbered_integer_addition_example) to prove the correct solution.\r\n```\r\necho [1 2 3 4]\r\n        | reduce -n {= $acc.item + $it.item }\r\n        | get item # result is 10\r\n```","closed_by":{"login":"sophiajt","id":547158,"node_id":"MDQ6VXNlcjU0NzE1OA==","avatar_url":"https://avatars.githubusercontent.com/u/547158?v=4","gravatar_id":"","url":"https://api.github.com/users/sophiajt","html_url":"https://github.com/sophiajt","followers_url":"https://api.github.com/users/sophiajt/followers","following_url":"https://api.github.com/users/sophiajt/following{/other_user}","gists_url":"https://api.github.com/users/sophiajt/gists{/gist_id}","starred_url":"https://api.github.com/users/sophiajt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophiajt/subscriptions","organizations_url":"https://api.github.com/users/sophiajt/orgs","repos_url":"https://api.github.com/users/sophiajt/repos","events_url":"https://api.github.com/users/sophiajt/events{/privacy}","received_events_url":"https://api.github.com/users/sophiajt/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https://api.github.com/repos/nushell/nushell/issues/3354/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/nushell/nushell/issues/3354/timeline","performed_via_github_app":null,"state_reason":null}