azabost
04/14/2023, 7:14 PMfold
and reduce
on Flow
are terminal operators.
I imagine collecting a hot flow, e.g. SharedFlow
and applying reduce
operator to accumulate the observed values as they appear. IMO it should simply return another Flow
just like map
operator.
Do you know of any alternatives to what I imagined?ephemient
04/14/2023, 7:16 PMephemient
04/14/2023, 7:16 PMazabost
04/14/2023, 7:17 PMazabost
04/14/2023, 7:18 PMrunningFold
. Thanks a lot.