product package:streamly

Determine the product of all elements of a stream of numbers. Returns 1 when the stream is empty.
product = Stream.fold Fold.product