ee.List.reduce
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी सूची में रिड्यूसर लागू करें. अगर रिड्यूसर एक से ज़्यादा इनपुट लेता है, तो सूची में मौजूद हर एलिमेंट को इनपुट की सूची माना जाता है. अगर रिड्यूसर एक आउटपुट दिखाता है, तो उसे सीधे तौर पर दिखाया जाता है. ऐसा न होने पर, रिड्यूसर के नाम वाले आउटपुट वाली डिक्शनरी दिखाई जाती है.
इस्तेमाल | रिटर्न |
---|
List.reduce(reducer) | ऑब्जेक्ट |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: list | सूची | |
reducer | रेड्यूसर | |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eList.reduce\u003c/code\u003e applies a given reducer function to a list, processing each element individually or as a list of inputs for the reducer.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns a single output directly if the reducer produces one, otherwise it returns a dictionary containing named outputs from the reducer.\u003c/p\u003e\n"],["\u003cp\u003eThis function operates on a list and requires a reducer as input, streamlining the application of reducing functions to list data.\u003c/p\u003e\n"]]],["A `reducer` function is applied to a `list`. If the `reducer` accepts multiple inputs, each list element is treated as a list of inputs. The output depends on the `reducer`: a single output is returned directly, whereas multiple outputs are returned as a dictionary with named outputs. The `list.reduce(reducer)` method is employed, returning an object. The method takes two arguments, a `list` and a `reducer`.\n"],null,["# ee.List.reduce\n\nApply a reducer to a list. If the reducer takes more than 1 input, then each element in the list is assumed to be a list of inputs. If the reducer returns a single output, it is returned directly, otherwise returns a dictionary containing the named reducer outputs.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------|---------|\n| List.reduce`(reducer)` | Object |\n\n| Argument | Type | Details |\n|--------------|---------|---------|\n| this: `list` | List | |\n| `reducer` | Reducer | |"]]