A Callbag operator that will calculates the maximum value of numbers emitted by a source and emits this maximum value. And it returns a single source.
Note
Available when Output
conforms to BinaryInteger
or BinaryFloatingPoint
Examples
let source = from(1...5)
_ = source
|> max()
|> forEach(print) // 5