distinctStrict

fun <T> Stream<T>.distinctStrict(): Stream<T>

Ignores duplicate values and thus only publishes when the value has changed.

The comparison between the previous and current value IS strict, using ===.