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

foldf

Sequence.foldf

(B 
type
, e B, f Binary B B Sequence.T)
 => 
B
[Contains abstract features]
fold the elements of this Sequence using the given function and initial
value.

In case this Sequence is empty, the result is `e`.

e.g., to find the product of a Sequence of i32, use `s.foldf (*) 1`

Type Parameters

0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)