@szilanor/stream
    Preparing search index...

    Function sum

    • Returns the sum of the source.

      Returns CollectorFunction<number, number | undefined>

      Collector that returns the sum of the source.

      const result = sum<number>()([1, 2, 3]);
      console.log(result); // 6