Applies a reducer function to an array within an Opt instance, combining its elements into a single value using the array's reduce method.
reduce
opt([1, 2, 3]).foldIn((acc, x) => acc + x, 0) // Some(6)none.foldIn((acc, x) => acc + x, 0) // None
Applies a reducer function to an array within an Opt instance, combining its elements into a single value using the array's
reduce
method.