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

foldf

Sequence.foldf

(B 
type
, e B, f Binary B B Sequence.T)
 => 
B
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-07-10 15:41:47 GIT hash eafa42ae743de61b62f958948d7abb5fada7756f built by fridi@fzen)