Prism · Sugar
$sum
Adds up the numbers of a list. Shorthand for a $reduce with an $add.
{ values: [10, 20, 30, 40] }{ $sum: { over: { $ref: '$.values' } } }100
Runs in this page on the installed package. The input and the expected output are defined by the example.