Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

KStream looks a lot like java.util.stream.Stream; it includes methods such as filter and map, terminal operations like to or join, and so on.  One conspicuously absent method is peek.e

Most stream operations are expected to be pure functions.  peek, by its nature, is not.  Usually mutating external state is discouraged but a number of diagnostic activities are made much easier.

...