"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SumList = void 0;
const namespace = "Numbers";
exports.SumList = {
    id: "Sum List",
    defaultStyle: {
        icon: "fa-plus",
    },
    namespace,
    description: "Emits the sum of a list of numbers",
    inputs: { list: { description: "List of numbers" } },
    outputs: { sum: { description: "The sum of the numbers in list" } },
    run: ({ list }, { sum }) => sum.next(list.reduce((a, b) => a + b, 0)),
};
