Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

sum

Sequence.sum

 => 
Sequence.T
[Contains abstract features]
generic sum of the elements of a Sequence of numeric.

This allows summing the elements of a list, as in

l := [1,2,3]
say <| l.sum # '6'
0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)