تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تطبيق دالة اختزال على قائمة إذا كان المخفّض يتلقّى أكثر من إدخال واحد، يُفترض أنّ كل عنصر في القائمة هو قائمة إدخالات. إذا عرضت الدالة المخفّضة ناتجًا واحدًا، يتم عرضه مباشرةً، وإلا يتم عرض قاموس يحتوي على نواتج الدالة المخفّضة المسماة.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`List.reduce` applies a given reducer function to a list, processing each element individually or as a list of inputs for the reducer."],["The method returns a single output directly if the reducer produces one, otherwise it returns a dictionary containing named outputs from the reducer."],["This function operates on a list and requires a reducer as input, streamlining the application of reducing functions to list data."]]],["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"]]