Creates a sink folding the feed into a single item.
The first item seeds the accumulator and every following one is folded into it, in source order, so the feed is drained without retaining more than the accumulator.
The type of items in the feed
A sink resolving to the final accumulator, to the only item of a singleton feed, or to undefined for
an empty feed
Creates a sink folding the feed into a value of a different type.
Folds like reduce without an initial argument, seeding the accumulator with the supplied value rather
than with the first item, so the result type is free of the item type and an empty feed resolves to the seed.
The type of items in the feed
The type of the accumulated result
A sink resolving to the final accumulator
Creates a sink reducing the feed to a single value, with or without an initial value.