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

fold

Sequence.fold

(m Monoid Sequence.T)
 => 
Sequence.T
[Contains abstract features]
fold the elements of this Sequence using the given monoid.

e.g., to sum the elements of a Sequence of i32, use s.fold i32.sum
0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)