Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2 KB

File metadata and controls

40 lines (32 loc) · 2 KB

Max

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